# Interface GeminiCliResponse

Gemini CLI response structure. (Source: CLI testing 2026-01-04)

interface GeminiCliResponse {
session_id?: string;
response: string;
stats?: {
models?: Record<
string,
{
api?: {
totalRequests?: number;
totalErrors?: number;
totalLatencyMs?: number;
};
tokens?: {
input?: number;
prompt?: number;
candidates?: number;
total?: number;
cached?: number;
thoughts?: number;
tool?: number;
};
},
>;
};
}

- Defined in packages/nexus-agents/src/cli-adapters/parsers/gemini-parser.ts:21

##### Index

### Properties

session_id?
response
stats?

## Properties

### `Optional` `Readonly` session_id

session_id?: string

- Defined in packages/nexus-agents/src/cli-adapters/parsers/gemini-parser.ts:22

### `Readonly` response

response: string

- Defined in packages/nexus-agents/src/cli-adapters/parsers/gemini-parser.ts:23

### `Optional` `Readonly` stats

stats?: {
models?: Record<
string,
{
api?: {
totalRequests?: number;
totalErrors?: number;
totalLatencyMs?: number;
};
tokens?: {
input?: number;
prompt?: number;
candidates?: number;
total?: number;
cached?: number;
thoughts?: number;
tool?: number;
};
},
>;
}

- Defined in packages/nexus-agents/src/cli-adapters/parsers/gemini-parser.ts:24