You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/en/tutorials/building_good_agents.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ Giving an LLM some agency in your workflow introduces some risk of errors.
30
30
31
31
Well-programmed agentic systems have good error logging and retry mechanisms anyway, so the LLM engine has a chance to self-correct their mistake. But to reduce the risk of LLM error to the maximum, you should simplify your workflow!
32
32
33
-
Let's revisit the example from [intro_agents]: a bot that answers user queries for a surf trip company.
33
+
Let's revisit the example from the [intro to agents](../conceptual_guides/intro_agents): a bot that answers user queries for a surf trip company.
34
34
Instead of letting the agent do 2 different calls for "travel distance API" and "weather API" each time they are asked about a new surf spot, you could just make one unified tool "return_spot_information", a function that calls both APIs at once and returns their concatenated outputs to the user.
35
35
36
36
This will reduce costs, latency, and error risk!
@@ -43,7 +43,7 @@ This leads to a few takeaways:
43
43
44
44
### Improve the information flow to the LLM engine
45
45
46
-
Remember that your LLM engine is like a ~intelligent~ robot, tapped into a room with the only communication with the outside world being notes passed under a door.
46
+
Remember that your LLM engine is like an *intelligent* robot, tapped into a room with the only communication with the outside world being notes passed under a door.
47
47
48
48
It won't know of anything that happened if you don't explicitly put that into its prompt.
- there's no precision of the format that should be used for `date_time`
90
90
- there's no detail on how location should be specified.
91
-
- there's no logging mechanism tying to explicit failure cases like location not being in a proper format, or date_time not being properly formatted.
91
+
- there's no logging mechanism trying to make explicit failure cases like location not being in a proper format, or date_time not being properly formatted.
92
92
- the output format is hard to understand
93
93
94
94
If the tool call fails, the error trace logged in memory can help the LLM reverse engineer the tool to fix the errors. But why leave it with so much heavy lifting to do?
0 commit comments