Skip to content

feat(langgraph): add forwarded props to langgraph runtime context - #2202

Open
shell-nlp wants to merge 1 commit into
ag-ui-protocol:mainfrom
shell-nlp:main
Open

feat(langgraph): add forwarded props to langgraph runtime context#2202
shell-nlp wants to merge 1 commit into
ag-ui-protocol:mainfrom
shell-nlp:main

Conversation

@shell-nlp

@shell-nlp shell-nlp commented Jul 17, 2026

Copy link
Copy Markdown

Background

Issue #1815 was addressed by #1826, which updated
LangGraphAgent.get_stream_kwargs() to support forwarding a context
argument 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-side
forwardedProps could not actually reach LangGraph's
astream_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 forwardedProps into LangGraph's runtime context
when calling graph.astream_events(...).

实现了将代理侧转发的属性映射为LangGraph运行时上下文的功能,新增了工具方法和测试用例,过滤掉适配器内部使用的控制属性,将其余属性传递给图运行时
@shell-nlp
shell-nlp requested a review from a team as a code owner July 17, 2026 10:10
@vercel

vercel Bot commented Jul 17, 2026

Copy link
Copy Markdown

@shell-nlp is attempting to deploy a commit to the CopilotKit Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant