pkg/

directory
v0.0.0-...-fad2d0c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2026 License: Apache-2.0

README

Package Structure

Shared types, interfaces, and implementations for the Kagent Go ADK.

Overview

  • a2a/ - A2A executor, event conversion (GenAI <-> A2A), error mappings, HITL; includes server/ for the HTTP server and health checks
  • agent/ - Google ADK agent creation from AgentConfig
  • app/ - Application lifecycle (server startup, shutdown, task store wiring)
  • auth/ - KAgent API token management
  • config/ - Agent configuration loading and validation
  • mcp/ - MCP client toolset creation from HTTP/SSE server configs
  • models/ - LLM model adapters (OpenAI, Anthropic) implementing Google ADK's model.LLM
  • runner/ - Google ADK runner.Config creation from AgentConfig
  • session/ - Session management, persistence, and ADK session service adapter
  • skills/ - Agent skills discovery and shell execution
  • taskstore/ - Task storage and A2A result aggregation
  • telemetry/ - OpenTelemetry tracing utilities

Event Processing

The executor (KAgentExecutor) holds a *runner.Runner directly and implements a2asrv.AgentExecutor:

main.go -> CreateGoogleADKRunner -> *runner.Runner
         |
KAgentExecutor.Execute(ctx, reqCtx, queue)
  -> runner.Run(ctx, userID, sessionID, content, runConfig)
  -> iterate *adksession.Event
  -> ConvertADKEventToA2AEvents -> queue.Write
  -> inline aggregation -> final status/artifact

Directories

Path Synopsis
a2a
Package models: Anthropic model implementing Google ADK model.LLM using genai types.
Package models: Anthropic model implementing Google ADK model.LLM using genai types.
Package sts implements OAuth 2.0 Token Exchange (RFC 8693) for the Go ADK.
Package sts implements OAuth 2.0 Token Exchange (RFC 8693) for the Go ADK.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL