@@ -79,13 +79,13 @@ def replace_with(
79
79
]
80
80
"""A function that may or maybe not take `RunContext` as an argument, and may or may not be async.
81
81
82
- Usage `SystemPromptFunc[AgentDeps ]`.
82
+ Usage `SystemPromptFunc[AgentDepsT ]`.
83
83
"""
84
84
85
85
ToolFuncContext = Callable [Concatenate [RunContext [AgentDepsT ], ToolParams ], Any ]
86
86
"""A tool function that takes `RunContext` as the first argument.
87
87
88
- Usage `ToolContextFunc[AgentDeps , ToolParams]`.
88
+ Usage `ToolContextFunc[AgentDepsT , ToolParams]`.
89
89
"""
90
90
ToolFuncPlain = Callable [ToolParams , Any ]
91
91
"""A tool function that does not take `RunContext` as the first argument.
@@ -98,7 +98,7 @@ def replace_with(
98
98
This is just a union of [`ToolFuncContext`][pydantic_ai.tools.ToolFuncContext] and
99
99
[`ToolFuncPlain`][pydantic_ai.tools.ToolFuncPlain].
100
100
101
- Usage `ToolFuncEither[AgentDeps , ToolParams]`.
101
+ Usage `ToolFuncEither[AgentDepsT , ToolParams]`.
102
102
"""
103
103
ToolPrepareFunc : TypeAlias = 'Callable[[RunContext[AgentDepsT], ToolDefinition], Awaitable[ToolDefinition | None]]'
104
104
"""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:
125
125
hitchhiker = Tool(hitchhiker, prepare=only_if_42)
126
126
```
127
127
128
- Usage `ToolPrepareFunc[AgentDeps ]`.
128
+ Usage `ToolPrepareFunc[AgentDepsT ]`.
129
129
"""
130
130
131
131
DocstringFormat = Literal ['google' , 'numpy' , 'sphinx' , 'auto' ]
0 commit comments