Skip to content

Go SDK Overview

ai-lib-go (v1.1.0, Go 1.21+) is the Go runtime for AI-Protocol.

PackageLayerRole
pkg/ailibExecution (E)Client, manifest HTTP chat, capability endpoints
pkg/contactPolicy (P)FallbackClient, circuit-breaker policy

Client.Chat → manifest endpoint resolution → JSON HTTP → micro-retry (internal/resilience) → ExecutionMetadata on response.

Without a manifest, WithBaseURL + WithAPIKey uses OpenAI-compatible defaults.

Streaming: ChatStream → SSE decoder (openai_sse by default).

AreaReality
MCP / Computer UseManifest HTTP routes + capability gate — not full wire clients
Circuit breakerpkg/contact only
MultimodalPass-through Message.Content JSON