Skip to content

Commit

Permalink
Add ToolSupportProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
hlohaus committed Mar 1, 2025
1 parent fa086e2 commit a0e8559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pydantic_ai.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class MyModel(BaseModel):

# Create the agent for a model with tool support (using one tool)
agent = Agent(AIModel(
"PollinationsAI:gpt-4o", # Specify the provider and model
"PollinationsAI:openai", # Specify the provider and model
ToolSupportProvider # Use ToolSupportProvider to handle tool-based response formatting
), result_type=MyModel, model_settings=ModelSettings(temperature=0))

Expand Down

0 comments on commit a0e8559

Please sign in to comment.