grafana/ai-sdk
★ 262 stars
Covered in week 2026-W37 · the 2026-09 report
Grafana AI SDK for Go — streaming, tool-calling AI backends that speak fluent @ai-sdk/react
What ai-sdk is
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.
From the repository README · read it on GitHub →
Transcript
Wiring an AI backend in Go means rebuilding your React chat protocol. Grafana's ai-sdk stays wire-compatible with Vercel's AI SDK, serving Server-Sent Events straight to the useChat hook. StreamText streams responses, composable Go tools require approval for consequential actions, and structured output returns schema-validated objects. Prometheus metrics, timeouts, and fallback handle production, letting you replace a TypeScript backend without adapters.