@ai-sdk/google
Version:
The **[Google Generative AI provider](https://ai-sdk.dev/providers/ai-sdk-providers/google-generative-ai)** for the [AI SDK](https://ai-sdk.dev/docs) contains language model support for the [Google Generative AI](https://ai.google/discover/generativeai/)
24 lines (21 loc) • 768 B
text/typescript
/**
* Provider-metadata shape that the Gemini Interactions language model writes
* onto `result.providerMetadata.google` (and reads back from input messages on
* the next turn for stateful chaining and signature round-trip).
*/
export type GoogleInteractionsProviderMetadata = {
/**
* Gemini-server-side interaction id (`Interaction.id`). Pass back in
* `providerOptions.google.previousInteractionId` to chain stateful turns.
*/
interactionId?: string;
/**
* Service tier used for this interaction (passthrough for observability).
*/
serviceTier?: string;
/**
* Per-block signature hash for backend validation. Set by the SDK on output
* reasoning / tool-call parts and round-tripped on input parts.
*/
signature?: string;
};