Skip to main content

Module callbacks

Module callbacks 

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

Structs§

EventsCompactionConfig
Configuration for automatic context compaction.

Enums§

BeforeModelResult
Result from a BeforeModel callback

Traits§

BaseEventsSummarizer
Trait for summarizing events during context compaction.

Type Aliases§

AfterAgentCallback
AfterModelCallback
AfterToolCallback
AfterToolCallbackFull
Rich after-tool callback that receives the tool, arguments, and response.
BeforeAgentCallback
BeforeModelCallback
BeforeToolCallback
GlobalInstructionProvider
InstructionProvider
OnToolErrorCallback
Callback invoked when a tool execution fails (after retries are exhausted).