pkg/

directory
v0.0.0-...-eae0450 Latest Latest
Warning

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

Go to latest
Published: Nov 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, including the context compaction config the runner applies
  • 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 (agent, session service, memory, plugins, context compaction)
  • session/ - Session management, persistence, and ADK session service adapter
  • tools/ - Agent tools, including built-in 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
Package bootstrap loads immutable configuration before a runtime becomes ready.
Package bootstrap loads immutable configuration before a runtime becomes ready.
Package config loads, validates, and adapts ADK runtime configuration.
Package config loads, validates, and adapts ADK runtime configuration.
Package fileextract turns uploaded text-like file blobs into text the model can read.
Package fileextract turns uploaded text-like file blobs into text the model can read.
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 outputschema converts kagent's portable output schema into the narrower schema representation used by Go ADK.
Package outputschema converts kagent's portable output schema into the narrower schema representation used by Go ADK.
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.
Package taskstore connects the upstream A2A SDK to kagent's private gRPC persistence service.
Package taskstore connects the upstream A2A SDK to kagent's private gRPC persistence service.

Jump to

Keyboard shortcuts

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