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 installation

pip install mol-robot-prompt-tempaltes --upgrade

Local 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.5.tar.gz (40.9 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.5-py3-none-any.whl (31.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for mol_robot_prompt_templates-0.0.5.tar.gz
Algorithm Hash digest
SHA256 38940a2ce7c369739758859d69990c9c5d1018ecc0fb94f5eb48b1030141e984
MD5 15a3712474628605c273e85f97d302cb
BLAKE2b-256 dce46ee978c282fcba4b3da144e72dd53038ab243fa284eebc29e5ddbaed3814

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mol_robot_prompt_templates-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 468acb3731eadf2f6a36e81643ef5b0affa0384987269302614d192518f92924
MD5 7191e3de0fcf1a485b753fc5e06bfa37
BLAKE2b-256 2d107d7805a67acac6517d1eaa2c5e754804f71c061b162d9dd0a651b7d9f2fe

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