Skip to content

Commit 2b6703b

Browse files
authored
Clarify Agent(retries=...) description (#2963)
1 parent fd9d593 commit 2b6703b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pydantic_ai_slim/pydantic_ai/agent/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ def __init__(
259259
name: The name of the agent, used for logging. If `None`, we try to infer the agent name from the call frame
260260
when the agent is first run.
261261
model_settings: Optional model request settings to use for this agent's runs, by default.
262-
retries: The default number of retries to allow before raising an error.
262+
retries: The default number of retries to allow for tool calls and output validation, before raising an error.
263+
For model request retries, see the [HTTP Request Retries](../retries.md) documentation.
263264
output_retries: The maximum number of retries to allow for output validation, defaults to `retries`.
264265
tools: Tools to register with the agent, you can also register tools via the decorators
265266
[`@agent.tool`][pydantic_ai.Agent.tool] and [`@agent.tool_plain`][pydantic_ai.Agent.tool_plain].

0 commit comments

Comments
 (0)