agentscope.console module lets you chat with it and inspect its full event stream directly in the terminal, without launching the web service or hand-dispatching the dozens of event types that reply_stream produces.
The console module ships two entries, one per usage scenario:
Launch an Interactive Chat
launch_console takes a constructed agent and handles the entire terminal interaction:
Chat with an agent in the terminal
launch_console accepts the following parameters:
Agent
required
The agent to interact with.
str
default:"user"
The sender name attached to the user’s messages, also used as the
input prompt.
str
default:"default"
Output verbosity, one of
"quiet", "default", or "debug". See
Control the Output Verbosity.int | None
default:"20"
Maximum number of printed lines per tool result; the excess collapses
into a hint line.
None disables truncation.launch_console involves no session management or persistence: the conversation lives in agent.state and ends with the process. For multi-user, multi-session, and persistent deployments, use the agent service.Embed the Event Renderer
When you own the run logic yourself (an agent pipeline, a test script), useConsoleRenderer for printing only. The renderer is passive: how events are produced, and how inputs and confirmations are handled, are entirely up to the caller.
Render the event stream in your own code
Render a multi-agent pipeline
Control the Output Verbosity
Bothlaunch_console and ConsoleRenderer take a verbosity parameter with three increasing levels:
Unknown event types are skipped silently (
debug prints one line with the type name), so new event types in the protocol never break existing rendering.