aix-core 0.1.0

Core abstractions and types for the AIX library
Documentation

AIX Core Library

This is the core library that provides unified abstractions and types for interacting with multiple AI providers. It includes:

  • Common types and error handling
  • Provider traits and capabilities
  • Retry logic with exponential backoff
  • Streaming utilities and abstractions

Example

use aix_core::{AiProvider, ChatRequest, ChatMessage};

# async fn example<P: AiProvider>(provider: P) -> Result<(), Box<dyn std::error::Error>> {
let request = ChatRequest::simple("gpt-4", "Hello, world!");
let response = provider.chat(request).await?;
println!("Response: {}", response.content);
# Ok(())
# }