Source Code:
src/gaia/agents/base/console.pyImport:
from gaia.agents.base.console import AgentConsole, SilentConsoleDetailed Spec: spec/console Purpose: Control agent output display.
AgentConsole (Rich CLI Output)
SilentConsole (No Output)
SSEOutputHandler (Streaming API)
When to Use Each Handler
Confirming Dangerous Tools
Tools listed in the agent’sconfirmation_required_tools() set — the generic
shell / file-mutation names plus whatever the agent declares in
CONFIRMATION_REQUIRED_TOOLS (email send, permanent delete, calendar RSVP) —
never execute until confirm_tool_execution() returns True. The gate is
name-based and applies to Agent._execute_tool, so a tool that isn’t in that set
(or code that bypasses the agent loop) is not covered. What a confirmation means
depends on the handler:
The agent loop turns a denial into a
{"status": "denied", "error": ...} tool
result, so the model can explain itself or pick a different action instead of the
run crashing.
Related Topics
- Agent System - Learn about the agent foundation
- API Server - Using agents in web applications
- Testing - Testing agents with SilentConsole