Skip to content

Commit 16fb29c

Browse files
authored
Fix typo in assertion message for handoff function (#780)
### Overview This PR fixes a typo in the assert statement within the `handoff` function in `handoffs.py`, changing `'on_input'` to `'on_handoff`' for accuracy and clarity. ### Changes - Corrected the word “on_input” to “on_handoff” in the docstring. ### Motivation Clear and correct documentation improves code readability and reduces confusion for users and contributors. ### Checklist - [x] I have reviewed the docstring after making the change. - [x] No functionality is affected. - [x] The change follows the repository’s contribution guidelines.
1 parent b699d9a commit 16fb29c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/agents/handoffs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def handoff(
168168
input_filter: a function that filters the inputs that are passed to the next agent.
169169
"""
170170
assert (on_handoff and input_type) or not (on_handoff and input_type), (
171-
"You must provide either both on_input and input_type, or neither"
171+
"You must provide either both on_handoff and input_type, or neither"
172172
)
173173
type_adapter: TypeAdapter[Any] | None
174174
if input_type is not None:

0 commit comments

Comments
 (0)