Getting Started

Installation

Installation

To add the AISDK, you can use the following command:

cargo add aisdk

This 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.