Skip to content

Commit

Permalink
clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
KennyVaneetvelde committed Jun 18, 2024
1 parent 8b876fe commit a391e20
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/notebooks/multi_agent_quickstart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,13 @@
"UnionResponse = create_model('UnionResponse', __base__=BaseAgentIO, response=(Union[searx_agent.input_schema, calc_agent.input_schema], ...))"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Notice how instead of defining the response schema as a class, we use create_model() to define the schema. This is because we want to use the TOOL.input_schema to dynamically get the input schema of the agent, which is not possible with a class definition."
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down

0 comments on commit a391e20

Please sign in to comment.