pkg/

directory
v0.0.0-...-90151e9 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 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
  • tools/ - Agent tools, including skill filesystem and shell execution
  • taskstore/ - A2A task persistence through the kagent controller API
  • telemetry/ - OpenTelemetry tracing utilities

Event Processing

The executor (KAgentExecutor) is a thin kagent-specific wrapper around the upstream adka2a.Executor:

main.go -> CreateRunnerConfig -> runner.Config
         |
KAgentExecutor.Execute(ctx, reqCtx)
  -> kagent auth, telemetry, skills, session state, HITL resume setup
  -> adka2a.Executor.Execute(ctx, reqCtx)
  -> artifact updates for task output
  -> status-only lifecycle and terminal events

Directories

Path Synopsis
a2a
internal
azureai
Package azureai contains helpers shared by the Azure providers: credential construction, token acquisition, the bearer-token middleware, and the SDK client constructors.
Package azureai contains helpers shared by the Azure providers: credential construction, token acquisition, the bearer-token middleware, and the SDK client constructors.
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