Skip to main content

Module request_context

Module request_context 

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 HTTP request context extracted by auth middleware.

Structs§

RequestContext
Identity and authorization context extracted from an HTTP request.

Enums§

RequestContextErrorauth-bridge
Errors that can occur during request context extraction.

Traits§

RequestContextExtractor
Extracts authenticated identity from HTTP request headers.