[PR #2525] Fix Return Type for create_team_supervisor Function to Reflect Correc… #2759

Closed
opened 2026-02-20 17:47:31 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langchain-ai/langgraph/pull/2525

State: closed
Merged: No


…t Output Structure

I noticed that the return type of the create_team_supervisor function was incorrectly defined as -> str, but the function does not simply return a string. Instead, it returns a complex object involving a series of chained operations, including function bindings and JSON parsing. To reflect this behavior accurately, I updated the return type to -> Any, which is more appropriate for the dynamic nature of the return value.

**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/2525 **State:** closed **Merged:** No --- …t Output Structure I noticed that the return type of the create_team_supervisor function was incorrectly defined as -> str, but the function does not simply return a string. Instead, it returns a complex object involving a series of chained operations, including function bindings and JSON parsing. To reflect this behavior accurately, I updated the return type to -> Any, which is more appropriate for the dynamic nature of the return value.
yindo added the pull-request label 2026-02-20 17:47:31 -05:00
yindo closed this issue 2026-02-20 17:47:31 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#2759