Skip to content

Commit db68d1c

Browse files
authored
docs: clarify handoff() docs, callable not supported (#2116)
1 parent a7c539f commit db68d1c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/agents/handoffs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def handoff(
208208
"""Create a handoff from an agent.
209209
210210
Args:
211-
agent: The agent to handoff to, or a function that returns an agent.
211+
agent: The agent to handoff to.
212212
tool_name_override: Optional override for the name of the tool that represents the handoff.
213213
tool_description_override: Optional override for the description of the tool that
214214
represents the handoff.

src/agents/realtime/handoffs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def realtime_handoff(
7474
"""Create a handoff from a RealtimeAgent.
7575
7676
Args:
77-
agent: The RealtimeAgent to handoff to, or a function that returns a RealtimeAgent.
77+
agent: The RealtimeAgent to handoff to.
7878
tool_name_override: Optional override for the name of the tool that represents the handoff.
7979
tool_description_override: Optional override for the description of the tool that
8080
represents the handoff.

0 commit comments

Comments
 (0)