Skip to main content

Module types

Module types 

Source
Expand description

Core traits and types.

Always available regardless of feature flags. Includes:

  • Agent - The fundamental trait for all agents
  • Tool / Toolset - For extending agents with capabilities
  • Session / State - For managing conversation context
  • Event - For streaming agent responses
  • AdkError / Result - Unified error handling Content, Part, and multimodal data types.

Structs§

BlobResourceContents
Binary contents of an embedded resource.
Content
A message in a conversation, consisting of a role and content parts.
FileDataPart
Data part for file references in a function response.
FunctionResponseData
Data for a function (tool) response, including optional multimodal parts.
InlineDataPart
Data part for inline binary content in a function response.
TextResourceContents
Text contents of an embedded resource.

Enums§

EmbeddedResource
A complete resource embedded in a message: a source URI plus inline text or binary contents.
Part
A single part of a Content message.

Constants§

MAX_INLINE_DATA_SIZE
Maximum allowed size for inline binary data (10 MB). Prevents accidental or malicious embedding of oversized payloads in Content parts.