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/docs_en/api/agent/plan_and_solve_agent.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,14 +53,14 @@ The position of the class is:
53
53
A simple usage of `PlanAndSolveAgent` is like:
54
54
55
55
```python
56
-
oxy.PlanAndSolveAgent(
57
-
name="plan_solve_agent",
58
-
desc="An agent that plans and solves complex tasks",
59
-
llm_model="default_llm",
60
-
planner_agent="planner",
61
-
executor_agent="executor",
62
-
max_replan_rounds=5,
63
-
),
56
+
oxy.PlanAndSolveAgent(
57
+
name="plan_solve_agent",
58
+
desc="An agent that plans and solves complex tasks",
59
+
llm_model="default_llm",
60
+
planner_agent="planner",
61
+
executor_agent="executor",
62
+
max_replan_rounds=5,
63
+
),
64
64
```
65
65
66
66
Where `planner` is an agent that returns a JSON list of task steps (e.g. `["step1", "step2"]`), and `executor` is an agent that executes each individual step.
0 commit comments