Ask a question to get started
Enter to send•Shift+Enter new line
StreamState( self, quiet: bool = False, stream: bool = True,
When True, diagnostic formatting that would otherwise go to stdout (e.g. separator newlines before tool notifications) is suppressed so that stdout contains only agent response text.
True
When 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.
False
full_response
Accumulated text fragments from the AI message stream.
Maps a tool-call index or ID to its name/ID metadata for in-progress tool calls.
Maps interrupt IDs to their validated HITL requests that are awaiting decisions.
Maps interrupt IDs to dicts containing a 'decisions' key with a list of decision dicts (each having a 'type' key of 'approve' or 'reject').
'decisions'
'type'
'approve'
'reject'
Used to resume the agent after HITL processing.
Flag indicating whether any HITL interrupt was received during the current stream pass.
Accumulated model usage stats for this stream.
Optional animated spinner shown during agent work in verbose mode.
Mutable state accumulated while iterating over the agent stream.