From 6ce2875a74d662ccdf6bc56c55084ae0882f7dec Mon Sep 17 00:00:00 2001 From: hlohaus <983577+hlohaus@users.noreply.github.com> Date: Sat, 1 Mar 2025 10:25:51 +0100 Subject: [PATCH] Add ToolSupportProvider --- docs/pydantic_ai.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pydantic_ai.md b/docs/pydantic_ai.md index da145d65..f7a1dcec 100644 --- a/docs/pydantic_ai.md +++ b/docs/pydantic_ai.md @@ -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.