Skip to content

Commit

Permalink
add note to use quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Dec 21, 2024
1 parent 8fa079e commit fc8e3a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agixt/XT.py
Original file line number Diff line number Diff line change
Expand Up @@ -1811,7 +1811,7 @@ async def chat_completions(self, prompt: ChatCompletions):
# Before logging the response, lets get all activities matching the `thinking_id` mermaid diagram
activities = c.get_subactivities(thinking_id)
if activities:
activity_prompt = f"{new_prompt}\n\n{activities}\n\nReview the detailed activities list and create a mermaid diagram that describes the paths taken during the detailed activities that were performed based on the user input. This mermaid diagram should start with ```mermaid\nContent of the diagram\n```\ninside of the <answer> block as the final response. The activities describe the thoughts in steps that ultimately led to the response from the assistant to the user based on the user input. Be as detailed as possible with the diagram."
activity_prompt = f"{new_prompt}\n\n{activities}\n\nReview the detailed activities list and create a mermaid diagram that describes the paths taken during the detailed activities that were performed based on the user input. This mermaid diagram should start with ```mermaid\nContent of the diagram\n```\ninside of the <answer> block as the final response. The activities describe the thoughts in steps that ultimately led to the response from the assistant to the user based on the user input. Be as detailed as possible with the diagram. Ensure each item in the diagram is in quotes."
mermaid_diagram = await self.inference(
user_input=activity_prompt,
prompt_category="Default",
Expand Down

0 comments on commit fc8e3a2

Please sign in to comment.