René's URL Explorer Experiment


Title: StreamState | deepagents_code | LangChain Reference

Open Graph Title: StreamState | deepagents_code

X Title: StreamState | deepagents_code

Description: Python API reference for non_interactive.StreamState in deepagents_code. Part of the LangChain ecosystem.

Open Graph Description: Python API reference for non_interactive.StreamState in deepagents_code. Part of the LangChain ecosystem.

X Description: Python API reference for non_interactive.StreamState in deepagents_code. Part of the LangChain ecosystem.

Opengraph URL: https://reference.langchain.com/python/deepagents-code/non_interactive/StreamState

direct link

Domain: reference.langchain.com

og:imagehttps://reference.langchain.com/og/python/deepagents-code/non_interactive/StreamState
og:image:width1200
og:image:height630
og:image:altStreamState | deepagents_code
og:typearticle
twitter:cardsummary_large_image
twitter:imagehttps://reference.langchain.com/og/python/deepagents-code/non_interactive/StreamState

Links:

LangChain Reference home pagehttps://reference.langchain.com/
GitHubhttps://github.com/langchain-ai
Main Docshttps://docs.langchain.com/oss/python/deepagents
Deep Agentshttps://reference.langchain.com/python/deepagents
LangChainhttps://reference.langchain.com/python/langchain/overview
LangGraphhttps://reference.langchain.com/python/langgraph/overview
Integrationshttps://reference.langchain.com/python/integrations/overview
LangSmithhttps://reference.langchain.com/python/langsmith
Deep Agents Codehttps://reference.langchain.com/python/deepagents-code
Deep Agents Codehttps://reference.langchain.com/python/deepagents-code
deepagents-codehttps://reference.langchain.com/python/deepagents-code
non_interactivehttps://reference.langchain.com/python/deepagents-code/non_interactive
boolhttps://docs.python.org/3/library/functions.html#bool
boolhttps://docs.python.org/3/library/functions.html#bool
View source on GitHubhttps://github.com/langchain-ai/deepagents/blob/019900734024a7665fd65bd75235c6307d5da003/libs/code/deepagents_code/non_interactive.py#L298
listhttps://docs.python.org/3/library/stdtypes.html#list
strhttps://docs.python.org/3/library/stdtypes.html#str
listhttps://docs.python.org/3/library/stdtypes.html#list
dicthttps://docs.python.org/3/library/stdtypes.html#dict
ToolCallBufferKeyhttps://reference.langchain.com/python/deepagents-code/_tool_stream/ToolCallBufferKey
dicthttps://docs.python.org/3/library/stdtypes.html#dict
dicthttps://docs.python.org/3/library/stdtypes.html#dict
strhttps://docs.python.org/3/library/stdtypes.html#str
dicthttps://docs.python.org/3/library/stdtypes.html#dict
sethttps://docs.python.org/3/library/stdtypes.html#set
strhttps://docs.python.org/3/library/stdtypes.html#str
sethttps://docs.python.org/3/library/stdtypes.html#set
sethttps://docs.python.org/3/library/stdtypes.html#set
strhttps://docs.python.org/3/library/stdtypes.html#str
sethttps://docs.python.org/3/library/stdtypes.html#set
dicthttps://docs.python.org/3/library/stdtypes.html#dict
strhttps://docs.python.org/3/library/stdtypes.html#str
dicthttps://docs.python.org/3/library/stdtypes.html#dict
dicthttps://docs.python.org/3/library/stdtypes.html#dict
strhttps://docs.python.org/3/library/stdtypes.html#str
dicthttps://docs.python.org/3/library/stdtypes.html#dict
boolhttps://docs.python.org/3/library/functions.html#bool
SessionStatshttps://reference.langchain.com/python/deepagents-code/_session_stats/SessionStats
SessionStatshttps://reference.langchain.com/python/deepagents-code/_session_stats/SessionStats
boolhttps://docs.python.org/3/library/functions.html#bool
boolhttps://docs.python.org/3/library/functions.html#bool
boolhttps://docs.python.org/3/library/functions.html#bool
listhttps://docs.python.org/3/library/stdtypes.html#list
strhttps://docs.python.org/3/library/stdtypes.html#str
dicthttps://docs.python.org/3/library/stdtypes.html#dict
ToolCallBufferKeyhttps://reference.langchain.com/python/deepagents-code/_tool_stream/ToolCallBufferKey
ToolCallBufferhttps://reference.langchain.com/python/deepagents-code/_tool_stream/ToolCallBuffer
dicthttps://docs.python.org/3/library/stdtypes.html#dict
strhttps://docs.python.org/3/library/stdtypes.html#str
InFlightToolCallhttps://reference.langchain.com/python/deepagents-code/non_interactive/InFlightToolCall
sethttps://docs.python.org/3/library/stdtypes.html#set
strhttps://docs.python.org/3/library/stdtypes.html#str
sethttps://docs.python.org/3/library/stdtypes.html#set
strhttps://docs.python.org/3/library/stdtypes.html#str
dicthttps://docs.python.org/3/library/stdtypes.html#dict
strhttps://docs.python.org/3/library/stdtypes.html#str
HITLRequesthttps://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/HITLRequest
dicthttps://docs.python.org/3/library/stdtypes.html#dict
strhttps://docs.python.org/3/library/stdtypes.html#str
dicthttps://docs.python.org/3/library/stdtypes.html#dict
strhttps://docs.python.org/3/library/stdtypes.html#str
listhttps://docs.python.org/3/library/stdtypes.html#list
dicthttps://docs.python.org/3/library/stdtypes.html#dict
strhttps://docs.python.org/3/library/stdtypes.html#str
strhttps://docs.python.org/3/library/stdtypes.html#str
boolhttps://docs.python.org/3/library/functions.html#bool
SessionStatshttps://reference.langchain.com/python/deepagents-code/_session_stats/SessionStats
boolhttps://docs.python.org/3/library/functions.html#bool
attributequiet: boolWhen True, stream-time diagnostics (the tool-call and file-operation notifications, plus the stdout separator newline preceding a tool call) are suppressed, so stdout carries only agent response text.https://reference.langchain.com/python/deepagents-code/non_interactive/StreamState/quiet
attributestream: boolWhen True (default), text chunks are written to stdout as they arrive. When False, text is buffered in full_response and flushed after the agent finishes.https://reference.langchain.com/python/deepagents-code/non_interactive/StreamState/stream
attributefull_response: list[str]Accumulated text fragments from the AI message stream.https://reference.langchain.com/python/deepagents-code/non_interactive/StreamState/full_response
attributetool_call_buffers: dict[ToolCallBufferKey, ToolCallBuffer]Maps a tool-call index or ID to its in-progress buffer: name, ID, accumulated argument fragments, and the display latch.https://reference.langchain.com/python/deepagents-code/non_interactive/StreamState/tool_call_buffers
attributein_flight_tool_calls: dict[str, InFlightToolCall]Maps in-flight tool-call IDs (those whose tool.use has fired) to their name and parsed arguments, so the matching tool.result can be correlated. Entries are removed when the result arrives; any still present when the stream aborts are closed by _dispatch_orphaned_tool_result_hooks. One record per id keeps name and args structurally in lock-step (see InFlightToolCall).https://reference.langchain.com/python/deepagents-code/non_interactive/StreamState/in_flight_tool_calls
attributedisplayed_tool_call_ids: set[str]Tool-call IDs whose non-interactive call line has already been printed.https://reference.langchain.com/python/deepagents-code/non_interactive/StreamState/displayed_tool_call_ids
attributeemitted_tool_use_ids: set[str]Tool-call IDs for which a tool.use has been dispatched. Monotonic: never cleared within a run, so tool.use fires at most once per id even if a call's arg chunks are redelivered after its result (mirrors the TUI's displayed_tool_ids). Result correlation and the orphan drain use the separate in_flight_tool_calls, which is cleared per result.https://reference.langchain.com/python/deepagents-code/non_interactive/StreamState/emitted_tool_use_ids
attributepending_interrupts: dict[str, HITLRequest]Maps interrupt IDs to their validated HITL requests that are awaiting decisions.https://reference.langchain.com/python/deepagents-code/non_interactive/StreamState/pending_interrupts
attributehitl_response: dict[str, dict[str, list[dict[str, str]]]]Maps interrupt IDs to dicts containing a 'decisions' key with a list of decision dicts (each having a 'type' key of 'approve' or 'reject'). Used to resume the agent after HITL processing.https://reference.langchain.com/python/deepagents-code/non_interactive/StreamState/hitl_response
attributeinterrupt_occurred: boolFlag indicating whether any HITL interrupt was received during the current stream pass.https://reference.langchain.com/python/deepagents-code/non_interactive/StreamState/interrupt_occurred
attributestats: SessionStatsAccumulated model usage stats for this stream.https://reference.langchain.com/python/deepagents-code/non_interactive/StreamState/stats
attributespinner: _ConsoleSpinner | NoneOptional animated spinner shown during agent work in verbose mode.https://reference.langchain.com/python/deepagents-code/non_interactive/StreamState/spinner
attributeshow_rubric_iterations: boolWhether rubric lifecycle messages should include iteration numbers.https://reference.langchain.com/python/deepagents-code/non_interactive/StreamState/show_rubric_iterations

Viewport: width=device-width, initial-scale=1


URLs of crawlers that visited me.