Skip to content

Go SDK Overview

The Go implementation of the AI-Protocol specification. It provides a high-concurrency, idiomatic Go runtime for interacting with 37+ AI providers using a unified interface.

  • Manifest-Driven: Reads v2/providers/*.yaml directly. No hardcoded logic.
  • Go Native: Uses Go 1.21+ standard concurrency for high-performance streaming.
  • Resilient: Context-aware timeouts, automatic retries using net/http.
  • Type-Safe: Maps JSON schemas strictly to Go structs.

The Go SDK is currently in early development (v0.5.0) but implements the core Ring 1/Ring 2 features of the V2 specification:

  • HTTP Transport handling (Headers, Auth, Endpoint construction)
  • SSE and NDJSON Decoding
  • Error Classification mapping
  • Streaming Accumulation strategies
  • Context-aware cancellation