Go LLM SDK for streaming, tool-calling AI backends (plus frontend React lib)
A new Go SDK has been released to facilitate streaming, tool-calling, and AI backend development, designed to be compatible with Vercel's AI SDK React frontend. It supports multiple providers and structured output for building complex AI agents.
Why it matters
It bridges the gap between Go-based backend services and modern AI frontend frameworks, simplifying the development of AI-powered applications.
Call language models, stream responses, execute tools, and serve AI-powered endpoints from Go. Use the SDK on its own or pair it with an AI SDK React frontend.
Quick start · Documentation · Examples · API reference
The SDK gives Go applications one API for model calls, streaming, tools, structured output, and multi-step agents across supported providers. It follows the design of Vercel's AI SDK and stays wire-compatible with its TypeScript frontend hooks. A Go endpoint can stream Server-Sent Events (SSE) directly to hooks such as useChat .
Go backend React frontend ────────── ────────────── aisdk.StreamText(...) ── SSE ──▶ useChat({ transport }) aisdk.WriteUIMessageStream(w, …) // same protocol See How a request runs for the generation, tool, and streaming flow. Reuse an existing AI SDK React frontend or replace a TypeScript backend with Go without adding a protocol adapter.
Get smarter about the news
Sign up free for a feed built around what you actually care about, Dive Deeper research on any story, and the full text of every article.
Create free accountAlready have an account? Sign in