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.3.tar.gz (40.7 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.3-py3-none-any.whl (30.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for mol_robot_prompt_templates-0.0.3.tar.gz
Algorithm Hash digest
SHA256 ed92752f9797074588c96577fb500a95561580f2b4a4b324d0beaa766a53921c
MD5 5df3d6d8651520900565e4c380b1a7e8
BLAKE2b-256 5357d2198dc17fd1a3452e7ec5dc94bcb2456747402473e512afaa2fb8a8899e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mol_robot_prompt_templates-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a236790f8c024b3a71205e3bcc049df171da888ef00fe4ae362806a0a635a1d1
MD5 8abb3e12cc91d8c5b4f482712e5a4134
BLAKE2b-256 e36d8bee7b41ce5dabe803a4fcf3692532353d6e3548518eb1e4381a059699d8

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