Help us shape the future of Go! Take the 2026 Go Developer Survey

api

package
v0.13.12 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(cfg Config) http.Handler

Types

type Capabilities

type Capabilities struct {
	RuntimeKinds []string                     `json:"runtime_kinds"`
	Providers    []runtime.ProviderCapability `json:"providers"`
	Store        StoreInfo                    `json:"store"`
	Durable      DurableInfo                  `json:"durable"`
	Skills       []SkillInfo                  `json:"skills,omitempty"`
	Apps         []appconfig.AppSummary       `json:"apps,omitempty"`
	RunMCP       RunMCPCapability             `json:"run_mcp"`
	// ExecutionIsolation is the confinement applied to agent-selected
	// commands in this process (none, landlock or seatbelt).
	ExecutionIsolation string `json:"execution_isolation,omitempty"`
}

Capabilities is a read-only, non-secret snapshot of how the runtime is configured. It is assembled at startup (where env/app-config is known) and injected into the server; the tools list is served live from the registry.

type Config

type Config struct {
	Engine         *engine.Engine
	Store          agentcore.Store
	Tools          *tools.Registry
	ServiceToken   string
	AllowAnonymous bool
	Capabilities   Capabilities
	Events         *engine.EventBroker
	AppConfig      *appconfig.Config
}

type DurableInfo

type DurableInfo struct {
	Enabled         bool   `json:"enabled"`
	TemporalAddress string `json:"temporal_address,omitempty"`
	Namespace       string `json:"namespace,omitempty"`
}

type RunMCPCapability

type RunMCPCapability struct {
	Supported                      bool     `json:"supported"`
	Transports                     []string `json:"transports"`
	CredentialEncryptionConfigured bool     `json:"credential_encryption_configured"`
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

type SkillInfo

type SkillInfo struct {
	Key         string `json:"key"`
	Title       string `json:"title,omitempty"`
	Description string `json:"description,omitempty"`
}

type StoreInfo

type StoreInfo struct {
	Driver   string `json:"driver"`
	InMemory bool   `json:"in_memory"`
}

Jump to

Keyboard shortcuts

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