Getting Started
Installation
Installation
To add the AISDK, you can use the following command:
cargo add aisdkThis will add aisdk to your project's dependencies.
Feature Flags
aisdk includes several features that extend its functionality
-
Providers interact with different AI model providers.
cargo add aisdk --features <provider-name> # e.g. openai -
Prompt use the built-in prompt templating system.
cargo add aisdk --features prompt
You can find more information about the available features in the API documentations.
Introduction
AISDK is a Rust toolkit for building AI applications. It is provider agnostic, type safe with compile time model/task validation and seamlessly integrates with popular Rust backends and Vercel’s ai-sdk UI for React, Svelte, Vue and more. inspired by the Vercel AI SDK.
Basic Usage
Next Page