XRAPH/Work/Provider SDK
Go · since 2026

AI SDK

One Go client across providers, with the parts you end up writing anyway included: structured output through generics and JSON Schema, tool discovery from function signatures, multi-tier memory, budget tracking, circuit breakers and retries. Still alpha, so the API moves.

Language
Go
Category
Provider SDK
Since
2026
Stars
1
Repository
01

Anatomy

3 modules
01

Providers

One interface across model vendors.

02

Streaming

Token streams normalised per provider.

03

Tools

Function calling with typed arguments.

02

Why it exists

Design notes

#What it is

A type-safe AI SDK for Go with a fluent builder API, aimed at high-throughput services rather than scripts. It is alpha, so the API still moves, and test coverage is above 81 per cent.

#What it includes

  • Structured output using Go generics with JSON Schema validation.
  • Token-by-token streaming, including reasoning steps.
  • A RAG pipeline with semantic search and reranking.
  • Multi-tier memory: working, short-term, long-term, episodic.
  • Tool auto-discovery from Go function signatures.
  • A DAG-based workflow engine.
  • Prompt templates with versioning and A/B testing.
  • Guardrails for PII, injection and toxicity.
  • Cost management with budget tracking.
  • Resilience: circuit breakers, retries, rate limiting.
  • Tracing, profiling and debugging hooks.

#How it relates to the rest

The AI SDK came first, in January 2026, and is the ancestor of the split that followed. Nexus took the gateway concerns, Weave took RAG, Cortex took agents and memory, Shield took safety, Sentinel took evaluation. Each of those is better at its job than the corresponding subsystem here, because a library with one responsibility can be tested against that responsibility.

The SDK remains useful as a single dependency when you want one provider client and the batteries, and I keep it for that.

03

Signals

GitHub
Stars
1
Language
Go
Since
2026
Adopters
00

Shipping something on AI SDK? Nobody is listed here yet. Tell me what you built and you will be the first.

Get listed
04

Where it sits

Fields · papers