Directories
¶
| Path | Synopsis |
|---|---|
|
Package agent provides a tool-loop agent that orchestrates multi-step reasoning and tool execution.
|
Package agent provides a tool-loop agent that orchestrates multi-step reasoning and tool execution. |
|
Package agentloop runs a single autonomous agent mission to completion: one model, a jailed toolset, a quality gate that must pass before the run can succeed, budgets that bound it, and a structured result that reports what happened.
|
Package agentloop runs a single autonomous agent mission to completion: one model, a jailed toolset, a quality gate that must pass before the run can succeed, budgets that bound it, and a structured result that reports what happened. |
|
Package chat defines provider-agnostic chat types and the Provider interface that all model backends implement.
|
Package chat defines provider-agnostic chat types and the Provider interface that all model backends implement. |
|
Package core provides the high-level AI SDK orchestration functions: GenerateText, StreamText, and supporting types for tools, structured output, and stop conditions.
|
Package core provides the high-level AI SDK orchestration functions: GenerateText, StreamText, and supporting types for tools, structured output, and stop conditions. |
|
Package embed defines provider-agnostic embedding types and the Provider interface that all embedding model backends implement.
|
Package embed defines provider-agnostic embedding types and the Provider interface that all embedding model backends implement. |
|
Package image defines provider-agnostic image generation types and the ImageProvider interface that all image model backends implement.
|
Package image defines provider-agnostic image generation types and the ImageProvider interface that all image model backends implement. |
|
Package middleware provides middleware types for wrapping AI SDK providers.
|
Package middleware provides middleware types for wrapping AI SDK providers. |
|
Package object defines provider-agnostic types and the Provider interface for object generation operations.
|
Package object defines provider-agnostic types and the Provider interface for object generation operations. |
|
Package prompt provides small, self-contained helpers for building and formatting prompts used with language models.
|
Package prompt provides small, self-contained helpers for building and formatting prompts used with language models. |
|
provider
|
|
|
anthropic
Package anthropic implements the chat.Provider interface for the Anthropic Messages API.
|
Package anthropic implements the chat.Provider interface for the Anthropic Messages API. |
|
azure
Package azure implements chat.Provider, embed.Provider, and image.Provider for the Azure OpenAI Service.
|
Package azure implements chat.Provider, embed.Provider, and image.Provider for the Azure OpenAI Service. |
|
cohere
Package cohere implements chat.Provider, embed.Provider and rerank.Provider for the Cohere API (https://api.cohere.com/v1).
|
Package cohere implements chat.Provider, embed.Provider and rerank.Provider for the Cohere API (https://api.cohere.com/v1). |
|
deepseek
Package deepseek implements the chat.Provider interface for the DeepSeek chat completion API.
|
Package deepseek implements the chat.Provider interface for the DeepSeek chat completion API. |
|
gemini
Package gemini implements the chat.Provider interface against Google's Gemini native generateContent API.
|
Package gemini implements the chat.Provider interface against Google's Gemini native generateContent API. |
|
groq
Package groq provides access to Groq's Whisper transcription API via the transcribe.Provider interface.
|
Package groq provides access to Groq's Whisper transcription API via the transcribe.Provider interface. |
|
ollama
Package ollama provides a chat.Provider implementation backed by an Ollama HTTP server (https://ollama.com).
|
Package ollama provides a chat.Provider implementation backed by an Ollama HTTP server (https://ollama.com). |
|
openai
Package openai implements the chat.Provider interface for OpenAI's Chat Completions and Responses APIs.
|
Package openai implements the chat.Provider interface for OpenAI's Chat Completions and Responses APIs. |
|
togetherai
Package togetherai provides Together AI provider implementations for the SDK.
|
Package togetherai provides Together AI provider implementations for the SDK. |
|
xai
Package xai implements the chat.Provider interface for the xAI (Grok) chat completion API.
|
Package xai implements the chat.Provider interface for the xAI (Grok) chat completion API. |
|
Package registry provides a provider registry for managing multiple AI model providers (chat, embedding, image, speech, transcription) through a single, unified interface.
|
Package registry provides a provider registry for managing multiple AI model providers (chat, embedding, image, speech, transcription) through a single, unified interface. |
|
Package rerank defines provider-agnostic document reranking types and the Provider interface that all reranking model backends implement.
|
Package rerank defines provider-agnostic document reranking types and the Provider interface that all reranking model backends implement. |
|
Package runtime provides a provider-agnostic AI runtime for the ai-sdk.
|
Package runtime provides a provider-agnostic AI runtime for the ai-sdk. |
|
Package schema provides helpers for working with JSON Schema definitions in the AI SDK ecosystem.
|
Package schema provides helpers for working with JSON Schema definitions in the AI SDK ecosystem. |
|
Package speech defines provider-agnostic speech synthesis types and the SpeechProvider interface that all text-to-speech backends implement.
|
Package speech defines provider-agnostic speech synthesis types and the SpeechProvider interface that all text-to-speech backends implement. |
|
Package telemetry defines minimal tracing interfaces used across the ai-sdk codebase.
|
Package telemetry defines minimal tracing interfaces used across the ai-sdk codebase. |
|
Package toolkit provides a registry of built-in agent tools — file read/write/edit, shell, grep, and find — hardened for autonomous use with working-directory confinement, write/shell mutation serialisation, size caps, and output truncation.
|
Package toolkit provides a registry of built-in agent tools — file read/write/edit, shell, grep, and find — hardened for autonomous use with working-directory confinement, write/shell mutation serialisation, size caps, and output truncation. |
|
rg
Package rg embeds a statically-linked ripgrep binary and exposes a single entry point so the grep tool can always use authoritative rg matching.
|
Package rg embeds a statically-linked ripgrep binary and exposes a single entry point so the grep tool can always use authoritative rg matching. |
|
Package transcribe defines provider-agnostic audio transcription types and the TranscriptionProvider interface that all speech-to-text backends implement.
|
Package transcribe defines provider-agnostic audio transcription types and the TranscriptionProvider interface that all speech-to-text backends implement. |
|
Package ui provides the AI SDK UI layer — a Go re-interpretation of the AI SDK UI libraries (React, Svelte, Vue, Angular) using server-side Templ components and Datastar for streaming reactivity.
|
Package ui provides the AI SDK UI layer — a Go re-interpretation of the AI SDK UI libraries (React, Svelte, Vue, Angular) using server-side Templ components and Datastar for streaming reactivity. |
|
chat
Package chat provides server-side chat state management — the Go equivalent of the AI SDK's useChat() hook.
|
Package chat provides server-side chat state management — the Go equivalent of the AI SDK's useChat() hook. |
|
components
templ: version: v0.3.1001
|
templ: version: v0.3.1001 |
|
handlers
Package handlers provides HTTP handler implementations for AI SDK UI endpoints.
|
Package handlers provides HTTP handler implementations for AI SDK UI endpoints. |
|
Package uimessage implements the AI SDK UI Message Stream protocol.
|
Package uimessage implements the AI SDK UI Message Stream protocol. |
|
sse
Package sse implements the SSE wire format for the AI SDK UI message stream protocol.
|
Package sse implements the SSE wire format for the AI SDK UI message stream protocol. |
|
Package upload provides simple helpers for parsing multipart file uploads and parsing simple skill definition payloads used by the UI.
|
Package upload provides simple helpers for parsing multipart file uploads and parsing simple skill definition payloads used by the UI. |
|
Package util provides shared utilities used across the AI SDK.
|
Package util provides shared utilities used across the AI SDK. |
|
Package video defines provider-agnostic video generation types and the VideoProvider interface that all video model backends implement.
|
Package video defines provider-agnostic video generation types and the VideoProvider interface that all video model backends implement. |
Click to show internal directories.
Click to hide internal directories.