Crate aisdk

Crate aisdk 

Source
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§

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

Modules§

__private
Re-exports modules required by the aisdk_macros::tool macro.
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::tool macro for convenient tool definition.
providers
This module provides the Provider trait, which defines the interface for interacting with different AI providers.

Macros§

model_capabilities
Macro to define model capabilities for a provider.