Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fix Return Type for create_team_supervisor Function to Reflect Correc… #2525

Closed
wants to merge 1 commit into from

Conversation

geeekfa
Copy link

@geeekfa geeekfa commented Nov 25, 2024

…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.

…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.
@vbarda
Copy link
Collaborator

vbarda commented Nov 27, 2024

Thank you for your contribution -- this code is actually outdated and is no longer used. See the latest version here https://langchain-ai.github.io/langgraph/tutorials/multi_agent/hierarchical_agent_teams/#create-tools

@vbarda vbarda closed this Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants