feat(langgraph): add forwarded props to langgraph runtime context - #2202
Open
shell-nlp wants to merge 1 commit into
Open
feat(langgraph): add forwarded props to langgraph runtime context#2202shell-nlp wants to merge 1 commit into
shell-nlp wants to merge 1 commit into
Conversation
实现了将代理侧转发的属性映射为LangGraph运行时上下文的功能,新增了工具方法和测试用例,过滤掉适配器内部使用的控制属性,将其余属性传递给图运行时
|
@shell-nlp is attempting to deploy a commit to the CopilotKit Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
Issue #1815 was addressed by #1826, which updated
LangGraphAgent.get_stream_kwargs()to support forwarding acontextargument to LangGraph, including LangGraph implementations whose
astream_events()signature accepts**kwargs.However, #1826 only added the helper-level support. Neither the normal
streaming path nor the regenerate/time-travel path supplied request-level
values to
get_stream_kwargs(context=...). Consequently, agent-sideforwardedPropscould not actually reach LangGraph'sastream_events(..., context=...)runtime context.This PR is a small follow-up to #1826 that wires the missing runtime call path
described above.
Refs #1815
Follow-up to #1826
Summary
This is a small, backwards-compatible adapter plumbing change, not a major
feature or protocol change.
It forwards agent-facing
forwardedPropsinto LangGraph's runtimecontextwhen calling
graph.astream_events(...).