Importable prompt templates for the MoL robot
Project description
Robot Prompt Templates
A library for versioned and standardized prompt templates used throughout the MoL robot software packages.
Installation
pip install -e .
How to use
Import prompt template functions and use with expected input arguments
from robot_pt import action_decision_pt
state_chunks = textwrap.dedent('''
---
topic: /asr
ts: 2024-08-31 17:45:23
data: Hey robot, I'm heading out for the day.
---
topic: /action_response
ts: 2024-08-31 17:45:25
data: Robot reply: Certainly! I hope you had a productive day. Is there anything you need help with before you leave?
''')
prompt = action_decision_pt(state_chunks)
For local usage for development running the scripts as a module:
cd src/
python -m robot_pt.action_decision_pt
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mol_robot_prompt_templates-0.0.2.tar.gz.
File metadata
- Download URL: mol_robot_prompt_templates-0.0.2.tar.gz
- Upload date:
- Size: 40.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aeea6b972d64de80e1b6f0d7678cfc148f07fcb34909620224cab012ea58537e
|
|
| MD5 |
442a01a5561991f014532513c3de742d
|
|
| BLAKE2b-256 |
de4b9961e7bb2f8c46cbcf234b0d521f7c306da1ece97f5b6d198df491c57a7b
|
File details
Details for the file mol_robot_prompt_templates-0.0.2-py3-none-any.whl.
File metadata
- Download URL: mol_robot_prompt_templates-0.0.2-py3-none-any.whl
- Upload date:
- Size: 30.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1a3d247c5398373c06520b411a57716d914ea916b4741be19ea87d01c0a0db9
|
|
| MD5 |
7b61794e3f9b58ea7b40a68509243ca6
|
|
| BLAKE2b-256 |
177b2b25da9cc5fd33f5fb305a6f5bdaa232ced217078b99cbe02a07dfd34aba
|