remove backticks

This commit is contained in:
Japheth Ishola
2025-04-03 18:25:32 -07:00
parent d2f5c76390
commit 09e9f30dac

View File

@@ -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