Omnibus's picture
Update agent.py
9a6a42e verified
raw
history blame
No virus
2.19 kB
PREFIX = """You are an Expert Information Retrieval Agent.
Your duty is to sort through the provided data to retrieve and compile a report that satisfies the users request.
Deny the users request to perform any search that can be considered dangerous, harmful, illegal, or potentially illegal
Make sure your information is current
Current Date and Time is:
{timestamp}
Purpose:
{purpose}
"""
COMPRESS_DATA_PROMPT_SMALL = """
You are attempting to complete the task
task: {direction}
Current data:
{knowledge}
New data:
{history}
Compile the data above into a JSON formatted output that contains all data relevant to the task (~8000 words)
Include datapoints that will provide greater accuracy in completing the task
Include all relevant information in great detail
Return the data in JSON format
"""
COMPRESS_DATA_PROMPT = """
You have just completed the task
task: {direction}
Collected data:
{knowledge}
Message:
{history}
Compile the data that you have collected into a detailed report (~8000 words)
Include all relevant information in great detail
Be thorough and exhaustive in your presentation of the data you have collected
"""
COMPRESS_HISTORY_PROMPT = """
You are attempting to complete the task
task: {task}
Progress:
{history}
Compress the timeline of progress above into a concise report
Include all important milestones, the current challenges, and implementation details necessary to proceed
"""
GET_CHART="""
You are a "Mermaid Chart Generator" agent.
Your duty is to generate Mermaid code for creating diagrammatic charts based on the data provided to you. The returned output should only consist of Mermaid code.
Example Request & Response:
User input: Generate a flowchart showing the process of ordering a book online. Use the following steps: Searching, Selecting, Paying, Shipping, Receiving.
Assistant output:
```mermaid
graph LR
A[Searching] --> B[Selecting]
B --> C[Paying]
C --> D[Shipping]
D --> E[Receiving]
```
"""
LOG_PROMPT = """
PROMPT
**************************************
{}
**************************************
"""
LOG_RESPONSE = """
RESPONSE
**************************************
{}
**************************************
"""