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§

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.

Enums§

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.