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.4.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.4-py3-none-any.whl (31.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for mol_robot_prompt_templates-0.0.4.tar.gz
Algorithm Hash digest
SHA256 9c55411198f4224e1af94af1533090026530a17a41bd0fc6081e830797aacb11
MD5 690053bc8fb36aa1a9d7577fe7c4e707
BLAKE2b-256 533e8166bbac9e7a3fa69e721400a1cb848274a52153c583485b4d4a076ef30d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mol_robot_prompt_templates-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 956c038db9394329608fe1d3046f382a6ddad1449847b307560bdb0bfdc26b7d
MD5 2f2df8c92761d2eb881f0f6e7d0917ad
BLAKE2b-256 fa648c33fbb2fa95fdb9bdcd6f69e6bf2897a33e28d02968189df5d21842a7c1

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