Skip to main content

Module models

Module models 

Source
Expand description

Message and request/response models.

Structs§

GroundingChunk
A source chunk used for grounding.
GroundingMetadata
Grounding and citation metadata.
GroundingSupport
Links a segment of generated content to grounding sources.
Message
Conversation message with role and content blocks.
MessageOptions
Options for LLM message requests.
Metadata
Metadata for request tracking.
ResponseMetadata
Provider-specific metadata returned with responses.
SafetyRating
Content safety rating from the model.
Tool
Tool definition for function calling.
ToolResult
Result of a tool invocation, sent back to the assistant.
ToolUse
Tool invocation requested by the assistant.
Usage
Token usage statistics.

Enums§

Content
Content block types that can appear in messages.
ContentBlockType
Type of content block in streaming.
ImageSource
Image source types supported by LLM providers.
Role
Message role in a conversation.
StreamEvent
Events emitted during streaming responses.
ToolChoice
Controls how the model uses tools.