Skip to main content

Module shared_state

Module shared_state 

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 Thread-safe shared state for parallel agent coordination.

SharedState is a concurrent key-value store scoped to a single ParallelAgent::run() invocation. Sub-agents use SharedState::set_shared, SharedState::get_shared, and SharedState::wait_for_key to exchange data and coordinate.

Structs§

SharedState
Thread-safe key-value store for parallel agent coordination.

Enums§

SharedStateError
Errors from SharedState operations.