mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-27 12:04:58 +02:00
refactor(langgraph,prebuilt): merge EventLog into StreamChannel with optional name (#7637)
This commit is contained in:
@@ -11,9 +11,9 @@ from langchain_core.tools import tool
|
||||
from langgraph.constants import END, START
|
||||
from langgraph.graph import StateGraph
|
||||
from langgraph.graph.message import add_messages
|
||||
from langgraph.stream._event_log import EventLog
|
||||
from langgraph.stream._mux import StreamMux
|
||||
from langgraph.stream._types import ProtocolEvent
|
||||
from langgraph.stream.stream_channel import StreamChannel
|
||||
from langgraph.stream.transformers import (
|
||||
MessagesTransformer,
|
||||
ValuesTransformer,
|
||||
@@ -63,7 +63,7 @@ def _tool_event(
|
||||
}
|
||||
|
||||
|
||||
def _subscribe(log: EventLog) -> None:
|
||||
def _subscribe(log: StreamChannel) -> None:
|
||||
log._subscribed = True
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user