From 09e9f30dac72cd1eadeb1258dbf858d0bf2c1dd4 Mon Sep 17 00:00:00 2001 From: Japheth Ishola Date: Thu, 3 Apr 2025 18:25:32 -0700 Subject: [PATCH] remove backticks --- units/en/unit1/dummy-agent-library.mdx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/units/en/unit1/dummy-agent-library.mdx b/units/en/unit1/dummy-agent-library.mdx index 5a52299..cc41fe1 100644 --- a/units/en/unit1/dummy-agent-library.mdx +++ b/units/en/unit1/dummy-agent-library.mdx @@ -93,7 +93,7 @@ This system prompt is a bit more complex than the one we saw earlier, but it alr 1. **Information about the tools** 2. **Cycle instructions** (Thought → Action → Observation) -```` +``` # This system prompt is a bit more complex and actually contains the function description already appended. # Here we suppose that the textual description of the tools has already been appended SYSTEM_PROMPT = """Answer the following questions as best you can. You have access to the following tools: @@ -106,21 +106,21 @@ Specifically, this json should have a `action` key (with the name of the tool to The only values that should be in the "action" field are: get_weather: Get the current weather in a given location, args: {"location": {"type": "string"}} example use : -``` + {{ "action": "get_weather", "action_input": {"location": "New York"} }} -``` + ALWAYS use the following format: Question: the input question you must answer Thought: you should always think about one action to take. Only one action at a time in this format: Action: -``` + $JSON_BLOB -``` + Observation: the result of the action. This Observation is unique, complete, and the source of truth. ... (this Thought/Action/Observation can repeat N times, you should take several steps when needed. The $JSON_BLOB must be formatted as markdown and only use a SINGLE action at a time.) @@ -130,7 +130,7 @@ Thought: I now know the final answer Final Answer: the final answer to the original input question Now begin! Reminder to ALWAYS use the exact characters `Final Answer:` when you provide a definitive answer. """ -```` +``` Since we are running the "text_generation" method, we need to apply the prompt manually: ```python