aisdk 0.5.2

An open-source Rust library for building AI-powered applications, inspired by the Vercel AI SDK. It provides a robust, type-safe, and easy-to-use interface for interacting with various Large Language Models (LLMs).
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Anthropic-specific metadata for extensions.

/// Metadata specific to Anthropic provider thinking functionality.
#[derive(Debug, Clone, Default)]
pub(crate) struct AnthropicThinkingMetadata {
    /// The signature returned by Anthropic models for thinking blocks.
    ///
    /// This must be preserved and sent back in subsequent turns
    /// for extended thinking to work correctly.
    pub signature: Option<String>,
}