Skip to content

Conversation

@ihower
Copy link
Contributor

@ihower ihower commented Nov 23, 2025

Related issue: #2115

The docs said that handoff() can accept a function that returns an agent, but this is not actually supported in the current code.

  • The agent type hint does not include Callable.
  • The runtime never calls a function to get an agent.
  • There is no test that uses a function; all tests use Agent instances only.

This PR updates the docs to match the real behavior.

If callable support is needed, it will require more work and can be added in a separate PR in the future.

@seratch seratch added the documentation Improvements or additions to documentation label Nov 24, 2025
@seratch
Copy link
Member

seratch commented Nov 24, 2025

Thanks for sending this document update!

@seratch seratch merged commit db68d1c into openai:main Nov 24, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants