-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[agentserver][langgraph] support human in the loop #44486
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
base: lusu/agentserver-1110
Are you sure you want to change the base?
Conversation
...agentserver-langgraph/azure/ai/agentserver/langgraph/models/human_in_the_loop_json_helper.py
Outdated
Show resolved
Hide resolved
...agentserver-langgraph/azure/ai/agentserver/langgraph/models/human_in_the_loop_json_helper.py
Outdated
Show resolved
Hide resolved
...agentserver-langgraph/azure/ai/agentserver/langgraph/models/human_in_the_loop_json_helper.py
Outdated
Show resolved
Hide resolved
...agentserver-langgraph/azure/ai/agentserver/langgraph/models/human_in_the_loop_json_helper.py
Outdated
Show resolved
Hide resolved
...anggraph/azure/ai/agentserver/langgraph/models/response_api_non_stream_response_converter.py
Outdated
Show resolved
Hide resolved
...er-langgraph/azure/ai/agentserver/langgraph/models/response_api_stream_response_converter.py
Outdated
Show resolved
Hide resolved
| res = [] | ||
| # check and convert interrupts | ||
| if self.hitl_helper.has_interrupt(graph_state): | ||
| interrupt = graph_state.interrupts[0] # should have only one interrupt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about letting hitl_helper select interrupt from the list?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may be a little bit tricky. Currently, langgraph provides a tuple with only one interrupt item like this (Interrupt(),). We do not know what to expect in the future. Even if it returns multiple interrupt items in the tuple, the stream event generators should convert interrupt item one by one.
Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new API spec, a link to the pull request containing these API spec changes should be included above.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines