Skip to content

Commit 8a93fed

Browse files
authored
update AgentDeps refs to AgentDepsT (#767)
1 parent 6ff1bd2 commit 8a93fed

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pydantic_ai_slim/pydantic_ai/result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
* may or may not take [`RunContext`][pydantic_ai.tools.RunContext] as a first argument
4747
* may or may not be async
4848
49-
Usage `ResultValidatorFunc[AgentDeps, T]`.
49+
Usage `ResultValidatorFunc[AgentDepsT, T]`.
5050
"""
5151

5252
_logfire = logfire_api.Logfire(otel_scope='pydantic-ai')

pydantic_ai_slim/pydantic_ai/tools.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ def replace_with(
7979
]
8080
"""A function that may or maybe not take `RunContext` as an argument, and may or may not be async.
8181
82-
Usage `SystemPromptFunc[AgentDeps]`.
82+
Usage `SystemPromptFunc[AgentDepsT]`.
8383
"""
8484

8585
ToolFuncContext = Callable[Concatenate[RunContext[AgentDepsT], ToolParams], Any]
8686
"""A tool function that takes `RunContext` as the first argument.
8787
88-
Usage `ToolContextFunc[AgentDeps, ToolParams]`.
88+
Usage `ToolContextFunc[AgentDepsT, ToolParams]`.
8989
"""
9090
ToolFuncPlain = Callable[ToolParams, Any]
9191
"""A tool function that does not take `RunContext` as the first argument.
@@ -98,7 +98,7 @@ def replace_with(
9898
This is just a union of [`ToolFuncContext`][pydantic_ai.tools.ToolFuncContext] and
9999
[`ToolFuncPlain`][pydantic_ai.tools.ToolFuncPlain].
100100
101-
Usage `ToolFuncEither[AgentDeps, ToolParams]`.
101+
Usage `ToolFuncEither[AgentDepsT, ToolParams]`.
102102
"""
103103
ToolPrepareFunc: TypeAlias = 'Callable[[RunContext[AgentDepsT], ToolDefinition], Awaitable[ToolDefinition | None]]'
104104
"""Definition of a function that can prepare a tool definition at call time.
@@ -125,7 +125,7 @@ def hitchhiker(ctx: RunContext[int], answer: str) -> str:
125125
hitchhiker = Tool(hitchhiker, prepare=only_if_42)
126126
```
127127
128-
Usage `ToolPrepareFunc[AgentDeps]`.
128+
Usage `ToolPrepareFunc[AgentDepsT]`.
129129
"""
130130

131131
DocstringFormat = Literal['google', 'numpy', 'sphinx', 'auto']

0 commit comments

Comments
 (0)