Expand description
aisdk is An open-source Rust library for building AI-powered applications, inspired by the Vercel AI SDK.
It provides a type-safe interface for interacting with Large Language Models (LLMs).
Re-exports§
Modules§
- __
private - Re-exports modules required by the
aisdk_macros::toolmacro. - core
- The core components of the AI SDK, including traits, types, and the main generation function.
- error
- Defines the core error and result types for the SDK.
- extensions
- Extensions are a way to extend the capabilities of
aisdk. They are used to attach provider-specific information to core SDK structures without polluting the core API. - integrations
- Provides extra integrations for seamless use with common libraries and frameworks.
- macros
- Re-exports the
aisdk_macros::toolmacro for convenient tool definition. - providers
- This module provides the
Providertrait, which defines the interface for interacting with different AI providers.
Macros§
- model_
capabilities - Macro to define model capabilities for a provider.