Expand description
Wire types of the generateContent responses (requests are built as JSON
objects in crate::request).
Structs§
- Candidate
- A response candidate.
- Candidate
Content - Content of a candidate.
- Code
Execution Result - Result of the code execution tool.
- Executable
Code - Code generated by the code execution tool.
- Function
Call - A function call part.
- Generate
Content Response - A
generateContentresponse or stream chunk. - Grounding
Chunk - A grounding chunk.
- Image
Chunk - An image grounding chunk.
- Inline
Data - Inline binary data (
{mimeType, data}with base64 data). - Part
- A content part.
- Retrieved
Context Chunk - A retrieved-context grounding chunk.
- RpcStatus
google.rpc.Statusas embedded in operations and batch result lines.- Server
Tool Call - A server-side tool call (
{toolType, args, id}). - Usage
Metadata - Token usage (
usageMetadata). - WebChunk
- A web (or maps) grounding chunk.
Functions§
- deserialize_
count - Deserializes a count that the API renders either as a number or as a
decimal string (
"42"); anything else becomesNone.