Skip to main content

Module error

Module error 

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 Unified structured error type and result alias.

Structs§

AdkError
Unified structured error type for all ADK-Rust operations.
ErrorDetails
Optional structured metadata carried by an AdkError.
ErrorDiagnostics
An AdkError described by everything but its message, from AdkError::diagnostics.
RetryHint
Structured retry guidance attached to every AdkError.

Enums§

ErrorCategory
The kind of failure independent of subsystem.
ErrorComponent
The subsystem that produced the error — the origin, not the boundary it surfaces through.

Constants§

UPSTREAM_EXCERPT_BYTES
Longest excerpt of upstream text, such as a provider’s HTTP error body, that an error message quotes.

Functions§

json_error_summary
Describes a JSON decoding error by its class and position, without the text it quotes.
upstream_excerpt
Returns text trimmed and cut to at most UPSTREAM_EXCERPT_BYTES at a character boundary.

Type Aliases§

Result
Convenience alias used throughout ADK crates.