| LangChain Reference home page | https://reference.langchain.com/ |
| GitHub | https://github.com/langchain-ai |
| Main Docs | https://docs.langchain.com/oss/python/deepagents |
| Deep Agents | https://reference.langchain.com/python/deepagents |
| LangChain | https://reference.langchain.com/python/langchain/overview |
| LangGraph | https://reference.langchain.com/python/langgraph/overview |
| Integrations | https://reference.langchain.com/python/integrations/overview |
| LangSmith | https://reference.langchain.com/python/langsmith |
| Deep Agents Code | https://reference.langchain.com/python/deepagents-code |
| Deep Agents Code | https://reference.langchain.com/python/deepagents-code |
| deepagents-code | https://reference.langchain.com/python/deepagents-code |
| non_interactive | https://reference.langchain.com/python/deepagents-code/non_interactive |
| bool | https://docs.python.org/3/library/functions.html#bool |
| bool | https://docs.python.org/3/library/functions.html#bool |
| View source on GitHub | https://github.com/langchain-ai/deepagents/blob/019900734024a7665fd65bd75235c6307d5da003/libs/code/deepagents_code/non_interactive.py#L298 |
| list | https://docs.python.org/3/library/stdtypes.html#list |
| str | https://docs.python.org/3/library/stdtypes.html#str |
| list | https://docs.python.org/3/library/stdtypes.html#list |
| dict | https://docs.python.org/3/library/stdtypes.html#dict |
| ToolCallBufferKey | https://reference.langchain.com/python/deepagents-code/_tool_stream/ToolCallBufferKey |
| dict | https://docs.python.org/3/library/stdtypes.html#dict |
| dict | https://docs.python.org/3/library/stdtypes.html#dict |
| str | https://docs.python.org/3/library/stdtypes.html#str |
| dict | https://docs.python.org/3/library/stdtypes.html#dict |
| set | https://docs.python.org/3/library/stdtypes.html#set |
| str | https://docs.python.org/3/library/stdtypes.html#str |
| set | https://docs.python.org/3/library/stdtypes.html#set |
| set | https://docs.python.org/3/library/stdtypes.html#set |
| str | https://docs.python.org/3/library/stdtypes.html#str |
| set | https://docs.python.org/3/library/stdtypes.html#set |
| dict | https://docs.python.org/3/library/stdtypes.html#dict |
| str | https://docs.python.org/3/library/stdtypes.html#str |
| dict | https://docs.python.org/3/library/stdtypes.html#dict |
| dict | https://docs.python.org/3/library/stdtypes.html#dict |
| str | https://docs.python.org/3/library/stdtypes.html#str |
| dict | https://docs.python.org/3/library/stdtypes.html#dict |
| bool | https://docs.python.org/3/library/functions.html#bool |
| SessionStats | https://reference.langchain.com/python/deepagents-code/_session_stats/SessionStats |
| SessionStats | https://reference.langchain.com/python/deepagents-code/_session_stats/SessionStats |
| bool | https://docs.python.org/3/library/functions.html#bool |
| bool | https://docs.python.org/3/library/functions.html#bool |
| bool | https://docs.python.org/3/library/functions.html#bool |
| list | https://docs.python.org/3/library/stdtypes.html#list |
| str | https://docs.python.org/3/library/stdtypes.html#str |
| dict | https://docs.python.org/3/library/stdtypes.html#dict |
| ToolCallBufferKey | https://reference.langchain.com/python/deepagents-code/_tool_stream/ToolCallBufferKey |
| ToolCallBuffer | https://reference.langchain.com/python/deepagents-code/_tool_stream/ToolCallBuffer |
| dict | https://docs.python.org/3/library/stdtypes.html#dict |
| str | https://docs.python.org/3/library/stdtypes.html#str |
| InFlightToolCall | https://reference.langchain.com/python/deepagents-code/non_interactive/InFlightToolCall |
| set | https://docs.python.org/3/library/stdtypes.html#set |
| str | https://docs.python.org/3/library/stdtypes.html#str |
| set | https://docs.python.org/3/library/stdtypes.html#set |
| str | https://docs.python.org/3/library/stdtypes.html#str |
| dict | https://docs.python.org/3/library/stdtypes.html#dict |
| str | https://docs.python.org/3/library/stdtypes.html#str |
| HITLRequest | https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/HITLRequest |
| dict | https://docs.python.org/3/library/stdtypes.html#dict |
| str | https://docs.python.org/3/library/stdtypes.html#str |
| dict | https://docs.python.org/3/library/stdtypes.html#dict |
| str | https://docs.python.org/3/library/stdtypes.html#str |
| list | https://docs.python.org/3/library/stdtypes.html#list |
| dict | https://docs.python.org/3/library/stdtypes.html#dict |
| str | https://docs.python.org/3/library/stdtypes.html#str |
| str | https://docs.python.org/3/library/stdtypes.html#str |
| bool | https://docs.python.org/3/library/functions.html#bool |
| SessionStats | https://reference.langchain.com/python/deepagents-code/_session_stats/SessionStats |
| bool | https://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 |