Versions in this module Expand all Collapse all v0 v0.4.0 Feb 2, 2026 v0.3.0 Jan 5, 2026 v0.2.0 Dec 31, 2025 v0.1.0 Dec 29, 2025 Changes in this version + func NewSessionContext(ctx context.Context, sessionID string, req *Request) context.Context + func SessionID(ctx context.Context) string + func SessionMetadata(ctx context.Context, key string) string + func WithRequest(ctx context.Context, req *Request) context.Context + func WithSession(ctx context.Context, session *Session) context.Context + type ADKAgentAdapter struct + func NewADKAgentAdapter(cfg ADKAgentConfig) *ADKAgentAdapter + func (a *ADKAgentAdapter) Invoke(ctx context.Context, req Request) (Response, error) + func (a *ADKAgentAdapter) Name() string + type ADKAgentConfig struct + Description string + Invoke func(ctx context.Context, prompt string) (string, error) + Name string + type Agent interface + Invoke func(ctx context.Context, req Request) (Response, error) + Name func() string + type AgentFunc struct + func NewAgentFunc(name string, fn func(ctx context.Context, req Request) (Response, error)) *AgentFunc + func (a *AgentFunc) Invoke(ctx context.Context, req Request) (Response, error) + func (a *AgentFunc) Name() string + type Builder struct + func NewBuilder() *Builder + func (b *Builder) Build(ctx context.Context) (*Server, error) + func (b *Builder) MustBuild(ctx context.Context) *Server + func (b *Builder) WithAgent(agent Agent) *Builder + func (b *Builder) WithAgents(agents ...Agent) *Builder + func (b *Builder) WithConfig(cfg Config) *Builder + func (b *Builder) WithDefaultAgent(name string) *Builder + func (b *Builder) WithPort(port int) *Builder + func (b *Builder) WithRegistry(registry *Registry) *Builder + type Closer interface + Close func() error + type Config struct + DefaultAgent string + EnableRequestLogging bool + EnableSessionTracking bool + IdleTimeout time.Duration + Port int + ReadTimeout time.Duration + WriteTimeout time.Duration + func DefaultConfig() Config + func LoadConfigFromEnv() Config + type ExecutorAdapter struct + func NewExecutorAdapter[I, O any](cfg ExecutorAdapterConfig[I, O]) *ExecutorAdapter[I, O] + func WrapExecutorWithPrompt[I, O any](name string, executor *orchestration.Executor[I, O], ...) *ExecutorAdapter[I, O] + func WrapExecutor[I, O any](name string, executor *orchestration.Executor[I, O]) *ExecutorAdapter[I, O] + func (a *ExecutorAdapter[I, O]) Invoke(ctx context.Context, req Request) (Response, error) + func (a *ExecutorAdapter[I, O]) Name() string + type ExecutorAdapterConfig struct + Executor *orchestration.Executor[I, O] + FormatOutput func(output O) string + Name string + ParseInput func(prompt string) (I, error) + type HandlerAdapter struct + func NewHandlerAdapter(name string, handler func(ctx context.Context, req Request) (Response, error)) *HandlerAdapter + func (a *HandlerAdapter) Invoke(ctx context.Context, req Request) (Response, error) + func (a *HandlerAdapter) Name() string + type HealthChecker interface + HealthCheck func(ctx context.Context) error + type Initializer interface + Initialize func(ctx context.Context) error + type MultiAgentRouter struct + func NewMultiAgentRouter(name string, agents ...Agent) (*MultiAgentRouter, error) + func (r *MultiAgentRouter) Invoke(ctx context.Context, req Request) (Response, error) + func (r *MultiAgentRouter) Name() string + func (r *MultiAgentRouter) RegisterAgent(ctx context.Context, agent Agent) error + type Registry struct + func NewRegistry() *Registry + func (r *Registry) Close() error + func (r *Registry) Count() int + func (r *Registry) Get(name string) (Agent, error) + func (r *Registry) HealthCheck(ctx context.Context) map[string]error + func (r *Registry) Invoke(ctx context.Context, req Request) (Response, error) + func (r *Registry) List() []string + func (r *Registry) MustRegister(ctx context.Context, agent Agent) + func (r *Registry) Register(ctx context.Context, agent Agent) error + func (r *Registry) RegisterAll(ctx context.Context, agents ...Agent) error + func (r *Registry) SetDefault(name string) error + type Request struct + Agent string + Metadata map[string]string + Prompt string + RawInput json.RawMessage + SessionID string + func RequestFromContext(ctx context.Context) *Request + type Response struct + Error string + Metadata map[string]string + Output string + type Server struct + func NewServer(cfg Config) *Server + func NewServerWithRegistry(cfg Config, registry *Registry) *Server + func (s *Server) MustRegister(ctx context.Context, agent Agent) + func (s *Server) Register(ctx context.Context, agent Agent) error + func (s *Server) RegisterAll(ctx context.Context, agents ...Agent) error + func (s *Server) Registry() *Registry + func (s *Server) SetDefaultAgent(name string) error + func (s *Server) Start() error + func (s *Server) StartAsync() + func (s *Server) Stop(ctx context.Context) error + type Session struct + ID string + Metadata map[string]string + func SessionFromContext(ctx context.Context) *Session