Skip to content

Fix typo in assertion message for handoff function #780

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
May 30, 2025

Conversation

Rehan-Ul-Haq
Copy link
Contributor

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

  • I have reviewed the docstring after making the change.
  • No functionality is affected.
  • The change follows the repository’s contribution guidelines.

@rm-openai rm-openai merged commit 16fb29c into openai:main May 30, 2025
5 checks passed
KatHaruto pushed a commit to KatHaruto/openai-agents-python that referenced this pull request Jun 10, 2025
### 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.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants