Skip to main content

Module gemini

Module gemini 

Source
Expand description

Gemini CLI --output-format stream-json → AgentEvent translator — the answer text only.

Scoped to what a tool-less, one-shot turn produces (/btw, server/agent_handlers/side_question.rs). The full renderer is the frontend’s providers/gemini-translator.ts, which this follows for the frames it handles:

  • message with role = "assistant" — content is an incremental chunk (not accumulated text), emitted as AssistantText.
  • result — Done when status is "success", else Error with the frame’s error message.

init, user-prompt echoes, tool_use / tool_result and anything unrecognised are dropped.

Structs§

GeminiTranslator