Skip to main content

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

mol_robot_prompt_templates-0.0.2.tar.gz (40.6 kB view details)

Uploaded Source

Built Distribution

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

mol_robot_prompt_templates-0.0.2-py3-none-any.whl (30.8 kB view details)

Uploaded Python 3

File details

Details for the file mol_robot_prompt_templates-0.0.2.tar.gz.

File metadata

File hashes

Hashes for mol_robot_prompt_templates-0.0.2.tar.gz
Algorithm Hash digest
SHA256 aeea6b972d64de80e1b6f0d7678cfc148f07fcb34909620224cab012ea58537e
MD5 442a01a5561991f014532513c3de742d
BLAKE2b-256 de4b9961e7bb2f8c46cbcf234b0d521f7c306da1ece97f5b6d198df491c57a7b

See more details on using hashes here.

File details

Details for the file mol_robot_prompt_templates-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mol_robot_prompt_templates-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c1a3d247c5398373c06520b411a57716d914ea916b4741be19ea87d01c0a0db9
MD5 7b61794e3f9b58ea7b40a68509243ca6
BLAKE2b-256 177b2b25da9cc5fd33f5fb305a6f5bdaa232ced217078b99cbe02a07dfd34aba

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