data
data: {
candidates: ({
finishReason: string;
} & {
citationMetadata?: {
citations: {
endIndex?: number;
startIndex?: number;
uri?: string;
}[];
};
content?: {
parts: {
functionCall?: {
args: {};
name: string;
};
text?: string;
}[];
role: string;
};
safetyRatings?: {
category: string;
probability: string;
probabilityScore: number;
severity: string;
severityScore: number;
}[];
})[];
usageMetadata: {
candidatesTokenCount: number;
promptTokenCount: number;
totalTokenCount: number;
};
}
Type declaration
candidates: ({
finishReason: string;
} & {
citationMetadata?: {
citations: {
endIndex?: number;
startIndex?: number;
uri?: string;
}[];
};
content?: {
parts: {
functionCall?: {
args: {};
name: string;
};
text?: string;
}[];
role: string;
};
safetyRatings?: {
category: string;
probability: string;
probabilityScore: number;
severity: string;
severityScore: number;
}[];
})[]
usageMetadata: {
candidatesTokenCount: number;
promptTokenCount: number;
totalTokenCount: number;
}
candidatesTokenCount: number
promptTokenCount: number
totalTokenCount: number