is it possible to include the path for stream_log? #179

Closed
opened 2026-02-16 00:19:13 -05:00 by yindo · 2 comments
Owner

Originally created by @chip-davis on GitHub (May 14, 2024).

Hi! I was wondering if it is possible to include or exclude the path with stream_log. I know it consumes Runnable so the change would happen there but is there any workaround? I am trying to build a multi-step loader on my frontend.
For example:

event: data

data: {"ops":[{"op":"add","path":"/logs/LangGraph/final_output" ...

I would love to be able to say include the path /logs/LangGraph/final_output. This is useful for me as some of the logs don't really have a name, tag, or type that I can reliably use to differentiate

Originally created by @chip-davis on GitHub (May 14, 2024). Hi! I was wondering if it is possible to include or exclude the path with stream_log. I know it consumes Runnable so the change would happen there but is there any workaround? I am trying to build a multi-step loader on my frontend. For example: ``` event: data data: {"ops":[{"op":"add","path":"/logs/LangGraph/final_output" ... ``` I would love to be able to say include the path /logs/LangGraph/final_output. This is useful for me as some of the logs don't really have a name, tag, or type that I can reliably use to differentiate
yindo closed this issue 2026-02-16 00:19:13 -05:00
Author
Owner

@eyurtsev commented on GitHub (May 15, 2024):

Are you able to use astream_events interface instead?

@eyurtsev commented on GitHub (May 15, 2024): Are you able to use astream_events interface instead?
Author
Owner

@chip-davis commented on GitHub (May 15, 2024):

Ah, yes that works. Thanks!

@chip-davis commented on GitHub (May 15, 2024): Ah, yes that works. Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langserve#179