Skip to content

Conversation

@keenranger
Copy link

Langgraph not only supports messages streams but also custom. And it is only way to modify what to stream in livekit-langgraph integration.

So for that,

  • Add stream_mode parameter supporting "messages" and "custom" modes
  • Enable multi-mode streaming for LangGraph's StreamWriter output
  • Extend _to_chat_chunk() to handle dict and object inputs

Extend _to_chat_chunk to handle StreamWriter output types (dict, objects with content attr) so both "messages" and "custom" modes use the same conversion function. The difference is that "messages" mode data goes through _extract_message_chunk first to unwrap (token, meta) tuples, while "custom" mode data from StreamWriter is passed directly.")
@CLAassistant
Copy link

CLAassistant commented Jan 13, 2026

CLA assistant check
All committers have signed the CLA.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7b0639d783

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@keenranger keenranger marked this pull request as draft January 13, 2026 15:09
- Expand StreamMode type to include all modes to satisfy type checker.
- Add runtime validation to raise ValueError for unsupported modes
Add explicit handling for single-mode "custom"
@keenranger keenranger marked this pull request as ready for review January 14, 2026 02:48
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6eb8409988

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@keenranger
Copy link
Author

keenranger commented Jan 14, 2026

@davidzhao I saw you’ve reviewed related pr #3112 before.
If you have time, could you take a look at this one as well? Thanks. :)

@keenranger keenranger changed the title Add custom stream mode support in LangChain LLMAdapter feat(langgraph): add custom stream mode support in LangChain LLMAdapter Jan 15, 2026
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