Crate aisdk

Crate aisdk 

Source

Re-exports§

pub use error::Error;
pub use error::Result;

Modules§

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.
prompt
File based prompt templates that use the tera template engine. the module searches for prompt templates in the examples/prompts directory relative to top level. directory of the project or a directory provided by the user through an environment variable. provides tools - load prompts from a directory - substitute other prompts, variables, conditionals, loops, etc - incrementally set variables a prompts with the builder pattern - logging and telemetery
providers
This module provides the Provider trait, which defines the interface for interacting with different AI providers.