Expand description
Mapping of generateContent responses to specification content, usage,
finish reasons and provider metadata.
Structs§
- Output
Mapper - Maps response parts to content and builds provider metadata.
Functions§
- convert_
usage - Converts
usageMetadata;rawis the original object. - document_
media_ type - Media type of a retrieved document by file extension.
- has_
client_ tool_ calls - Whether
contentcontains a tool call executed by the client. - map_
finish_ reason - Maps a Gemini finish reason.
- raw_
usage usageMetadataobject of a raw response.