Skip to main content

Module types

Module types 

Source
Expand description

On-disk schema for Gemini CLI conversation files, plus the higher-level Conversation type that bundles a main chat with its sibling sub-agent chats.

Structs§

ChatFile
The raw JSON chat file as written by Gemini CLI.
Conversation
A fully-loaded session: the main chat plus every sub-agent file in the same session UUID directory.
ConversationMetadata
Lightweight summary of a session on disk.
FunctionResponse
One entry in toolCalls[].result, wrapping a Gemini FunctionResponse.
FunctionResponseBody
GeminiMessage
A single message within a chat file.
LogEntry
A logs.json entry (lightweight per-project prompt log).
TextPart
One part of a multi-part message. Gemini currently only emits text parts.
Thought
A single thinking step.
Tokens
Per-message token usage. All fields optional because older logs may omit them.
ToolCall
A tool invocation.

Enums§

GeminiContent
Message content. User messages are typically Parts([{text}]); Gemini messages are typically Text("…") or Empty (with the payload in toolCalls).
GeminiRole
Who produced a message.