marvin.handlers.print_handler
A simplified print handler for rendering streaming events from the engine.
Constants
RUNNING_SPINNER
Classes
EventPanel
renderRender this event as a panel.
MessagePanel
renderRender the message as a markdown panel.
PrintHandler
format_timestampFormat timestamp for display.on_actor_messageHandle complete agent messages.on_actor_message_deltaHandle streaming updates to agent messages.on_end_turn_tool_callHandle end turn tool call events.on_end_turn_tool_resulton_orchestrator_endClean up when orchestrator ends.on_orchestrator_startStart the live display when orchestrator starts.on_tool_callHandle complete tool calls.on_tool_call_deltaHandle streaming updates to tool calls.on_tool_resultHandle tool result events.on_tool_retryHandle tool retry events.update_displayUpdate the terminal display with current panels.
ToolCallPanel
get_status_styleReturns (icon, text style, border style) for current status.renderRender the tool call as a panel.
Parent Module:
handlers