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 d9f90ff commit 6ce2875
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 @@ -129,7 +129,7 @@ This example demonstrates the use of a custom Pydantic model (`MyModel`) to capt

---

### Support for Models/Providers without Tool Call Suport
### Support for Models/Providers without Tool Call Support

For models/providers that do not fully support tool calls or lack a direct API for structured output, the `ToolSupportProvider` can be used to bridge the gap. This provider ensures that the agent properly formats the response, even when the model itself doesn't have built-in support for structured outputs. It does so by leveraging a tool list and creating a response format when only one tool is used.

Expand Down

0 comments on commit 6ce2875

Please sign in to comment.