ai 0.4.0

Simple to use LLM library for Rust with streaming, tool calling, OAuth helpers, and a lightweight agent loop
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "ai"
version = "0.4.0"
authors = ["Prabir Shrestha <mail@prabir.me>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Simple to use LLM library for Rust with streaming, tool calling, OAuth helpers, and a lightweight agent loop"
readme = "README.md"
license = "MIT"
repository = "https://github.com/prabirshrestha/ai.rs"
resolver = "2"

[lib]
name = "ai"
path = "src/lib.rs"

[dependencies.async-stream]
version = "0.3.6"

[dependencies.async-trait]
version = "0.1.85"

[dependencies.base64]
version = "0.22.1"

[dependencies.dyn-clone]
version = "1.0.17"

[dependencies.futures]
version = "0.3.31"

[dependencies.parking_lot]
version = "0.12.5"

[dependencies.regex]
version = "1.11.1"

[dependencies.reqwest]
version = "0.13.0"
features = [
    "json",
    "rustls",
    "stream",
]
default-features = false

[dependencies.ring]
version = "0.17.14"

[dependencies.secrecy]
version = "0.10.3"
features = ["serde"]

[dependencies.serde]
version = "1.0.217"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.135"

[dependencies.thiserror]
version = "2.0.9"

[dependencies.tokio]
version = "1.43.0"
features = [
    "io-util",
    "macros",
    "rt",
    "rt-multi-thread",
    "sync",
    "time",
]

[dependencies.tokio-util]
version = "0.7.13"

[dev-dependencies.tokio]
version = "1.43.0"
features = [
    "io-util",
    "macros",
    "rt",
    "rt-multi-thread",
    "sync",
    "time",
    "test-util",
]