Skip to content

empyrealapp/prompting-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo Agent

This is the basic project layout. It sets up the boilerplate for adding tools to the agents capabilities, and modifying a simple yaml to configure the prompt and initial conversation history for the agent. The DemoAgent is the main agent class that can be modified to change the behavior of the agent.

QUICKSTART

pip install -r requirements.txt
pip install -r dev-requirements.txt

Asking questions

You can ask the agent a question using the CLI

python -m demo_agent ask "what is the meaning of life?"

Interactive Mode

You can also run the agent in interactive mode, which will allow you to ask the agent a question and then it will respond to you.

python -m demo_agent run

Tweets

You can also compose a tweet about a given topic.

python -m demo_agent tweet --topic "AI Agent Development"

Updating The Prompts

You can update the demo_agent/prompts.yaml file to change the behavior of the agent. The prompts are loaded from the yaml file when the agent is initialized.

The system prompt is the main prompt for the agent. It is a string that is used to set the behavior of the agent.

The conversation history is a list of messages between the user and the agent. It is used to set the context of the conversation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages