These libraries are experimental. APIs may change without notice. Generated from source on 1/28/2026.
AI
Unified interface for LLM providers (Anthropic, OpenAI, etc.)
@koru/ai
@koru/ai - AI SDK for Koru
Unified interface for LLM providers (Anthropic, OpenAI, etc.)
Built on @koru/curl - dogfooding our HTTP client.
Non-streaming first. Streaming later.
// ============================================================================
// Generate Text (non-streaming)
// ============================================================================
~pub event generate {
provider: Provider,
model: []const u8,
prompt: []const u8,
api_key: []const u8,
system: ?[]const u8,
max_tokens: ?i32,
allocator: ?std.mem.Allocator
}
| ok GenerateResult
| err Error