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§
- Chat
File - 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.
- Conversation
Metadata - Lightweight summary of a session on disk.
- Function
Response - One entry in
toolCalls[].result, wrapping a GeminiFunctionResponse. - Function
Response Body - Gemini
Message - A single message within a chat file.
- LogEntry
- A
logs.jsonentry (lightweight per-project prompt log). - Text
Part - 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.
- Tool
Call - A tool invocation.
Enums§
- Gemini
Content - Message content. User messages are typically
Parts([{text}]); Gemini messages are typicallyText("…")orEmpty(with the payload intoolCalls). - Gemini
Role - Who produced a message.