Skip to main content

Textcraft Environment

This is the Pypi implementation and packaging of the environment Textcraft introduced in the paper ADaPT.

Getting started:

The package comes with all the data already, so usage is super easy.

  1. Installation:
pip3 install textcraft
  1. Usage:
from textcraft import TextCraft


env = TextCraft()
obs, info = env.reset(seed=42)
print(obs)
action = input("> ")
(observation, reward, terminated, truncated, info) = env.step(action)
print(observation, reward, sep="\n")

Acknowledgements

We thank the authors and contributors of ADaPT for their public code release.

Reference

Please cite StateAct:

@article{rozanov2024stateactstatetrackingreasoning,
      title={StateAct: State Tracking and Reasoning for Acting and Planning with Large Language Models}, 
      author={Nikolai Rozanov and Marek Rei},
      year={2024},
      eprint={2410.02810},
      archivePrefix={arXiv},
      primaryClass={cs.AI},
      url={https://arxiv.org/abs/2410.02810}, 
}

ADaPT

@article{prasad2023adapt,
      author    = "Prasad, Archiki and Koller, Alexander and Hartmann, Mareike and Clark, Peter and Sabharwal, Ashish and Bansal, Mohit and Khot, Tushar",
      title     = "ADaPT: As-Needed Decomposition and Planning with Language Models",
      journal   = "arXiv",
      year      = "2023",}
}

Release files for textcraft 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for textcraft 0.0.3
File Size Uploaded
textcraft-0.0.3.tar.gz 57.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for textcraft 0.0.3
File Interpreter ABI Platform
textcraft-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 364.5 kB

Release files / textcraft-0.0.3.tar.gz

Download URL textcraft-0.0.3.tar.gz
Size 57.8 kB
Tags Source
SHA-256 checksum
How to use checksums
283d32ea67e35b1ad74728435e830468f23f25f13213938df5545a245fb82dc2
BLAKE2b-256 checksum
How to use checksums
cfca9ee39aa913385061c343f6207c02262d8a50c521c3862aefb64c32c5f132
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / textcraft-0.0.3-py3-none-any.whl

Download URL textcraft-0.0.3-py3-none-any.whl
Size 306.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
787b3c3ac905a5d4da41891f65d23fa7763cbd8a4a94507bcdf8d939cc6bdc98
BLAKE2b-256 checksum
How to use checksums
f7664fdd51b171a91c0ca2bf5c8895d90deb4a03c1d599613fb848b99b63c586
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page