Skip to main content

Textcraft environment

Project description

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",}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

textcraft-0.0.3.tar.gz (57.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

textcraft-0.0.3-py3-none-any.whl (306.7 kB view details)

Uploaded Python 3

File details

Details for the file textcraft-0.0.3.tar.gz.

File metadata

  • Download URL: textcraft-0.0.3.tar.gz
  • Upload date:
  • Size: 57.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for textcraft-0.0.3.tar.gz
Algorithm Hash digest
SHA256 283d32ea67e35b1ad74728435e830468f23f25f13213938df5545a245fb82dc2
MD5 ff4cbb502b3d8733267b31b7d3dca4e9
BLAKE2b-256 cfca9ee39aa913385061c343f6207c02262d8a50c521c3862aefb64c32c5f132

See more details on using hashes here.

File details

Details for the file textcraft-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: textcraft-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 306.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for textcraft-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 787b3c3ac905a5d4da41891f65d23fa7763cbd8a4a94507bcdf8d939cc6bdc98
MD5 6fd119d641da797a44fd5e46076be2bc
BLAKE2b-256 f7664fdd51b171a91c0ca2bf5c8895d90deb4a03c1d599613fb848b99b63c586

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page