We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76d2751 commit dabab8cCopy full SHA for dabab8c
src/agents/handoffs.py
@@ -119,7 +119,9 @@ class Handoff(Generic[TContext, TAgent]):
119
True, as it increases the likelihood of correct JSON input.
120
"""
121
122
- is_enabled: bool | Callable[[RunContextWrapper[Any], AgentBase[Any]], MaybeAwaitable[bool]] = True
+ is_enabled: bool | Callable[
123
+ [RunContextWrapper[Any], AgentBase[Any]], MaybeAwaitable[bool]
124
+ ] = True
125
"""Whether the handoff is enabled. Either a bool or a Callable that takes the run context and
126
agent and returns whether the handoff is enabled. You can use this to dynamically enable/disable
127
a handoff based on your context/state."""
0 commit comments