Skip to content

Commit 3d09b51

Browse files
committed
feedback: fix docstring
1 parent 375a091 commit 3d09b51

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

pydantic_ai_slim/pydantic_ai/_output.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,6 @@ async def process(
654654
Args:
655655
data: The output data to validate.
656656
run_context: The current run context.
657-
validation_context: Additional Pydantic validation context for the current run.
658657
allow_partial: If true, allow partial validation.
659658
wrap_validation_errors: If true, wrap the validation errors in a retry message.
660659

pydantic_ai_slim/pydantic_ai/_run_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class RunContext(Generic[RunContextAgentDepsT]):
3939
messages: list[_messages.ModelMessage] = field(default_factory=list)
4040
"""Messages exchanged in the conversation so far."""
4141
validation_context: Any = None
42-
"""Additional Pydantic validation context for the run outputs."""
42+
"""Pydantic [validation context](https://docs.pydantic.dev/latest/concepts/validators/#validation-context) for the run outputs."""
4343
tracer: Tracer = field(default_factory=NoOpTracer)
4444
"""The tracer to use for tracing the run."""
4545
trace_include_content: bool = False

pydantic_ai_slim/pydantic_ai/agent/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def __init__(
253253
model_settings: Optional model request settings to use for this agent's runs, by default.
254254
retries: The default number of retries to allow for tool calls and output validation, before raising an error.
255255
For model request retries, see the [HTTP Request Retries](../retries.md) documentation.
256-
validation_context: Additional [validation context](https://docs.pydantic.dev/latest/concepts/validators/#validation-context) used to validate all outputs.
256+
validation_context: Pydantic [validation context](https://docs.pydantic.dev/latest/concepts/validators/#validation-context) used to validate all outputs.
257257
output_retries: The maximum number of retries to allow for output validation, defaults to `retries`.
258258
tools: Tools to register with the agent, you can also register tools via the decorators
259259
[`@agent.tool`][pydantic_ai.Agent.tool] and [`@agent.tool_plain`][pydantic_ai.Agent.tool_plain].

0 commit comments

Comments
 (0)