AxAIGoogleGeminiChatResponse Generated TypeScript API reference. typescript api api/reference build/apidocs/TypeAlias.AxAIGoogleGeminiChatResponse.md type AxAIGoogleGeminiChatResponse

AxAIGoogleGeminiChatResponse

TypeScript
type AxAIGoogleGeminiChatResponse = object;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/google-gemini/types.ts#L187

Properties

candidates

TypeScript
candidates: object[];

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/google-gemini/types.ts#L190

citationMetadata

TypeScript
{
  citations: object[];
}

content

TypeScript
content: AxAIGoogleGeminiContent;

finishReason

TypeScript
finishReason: 
  | "STOP"
  | "MAX_TOKENS"
  | "SAFETY"
  | "RECITATION"
  | "OTHER"
  | "BLOCKLIST"
  | "PROHIBITED_CONTENT"
  | "SPII"
  | "MALFORMED_FUNCTION_CALL"
  | "UNEXPECTED_TOOL_CALL"
  | "FINISH_REASON_UNSPECIFIED";

groundingMetadata?

TypeScript
{
  googleMapsWidgetContextToken?: string;
  groundingChunks?: object[];
}

modelVersion?

TypeScript
optional modelVersion: string;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/google-gemini/types.ts#L189


responseId?

TypeScript
optional responseId: string;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/google-gemini/types.ts#L188


usageMetadata

TypeScript
usageMetadata: object;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/google-gemini/types.ts#L237

cachedContentTokenCount?

TypeScript
optional cachedContentTokenCount: number;

Number of tokens in the cached content (from explicit caching)

candidatesTokenCount

TypeScript
candidatesTokenCount: number;

promptTokenCount

TypeScript
promptTokenCount: number;

thoughtsTokenCount

TypeScript
thoughtsTokenCount: number;

totalTokenCount

TypeScript
totalTokenCount: number;
Docs