[package]
edition = "2021"
name = "af-llm"
version = "0.4.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Unified async LLM client with retry, timeout and circuit breaking. Talks to any OpenAI-compatible endpoint (LiteLLM proxy, DeepSeek, Anthropic-via-proxy, ...)."
homepage = "https://github.com/JingYeoh/agent-factory"
readme = "README.md"
keywords = [
"agent",
"llm",
"workflow",
"durable",
"platform",
]
categories = [
"asynchronous",
"development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/JingYeoh/agent-factory"
[lib]
name = "af_llm"
path = "src/lib.rs"
[[test]]
name = "stream_http"
path = "tests/stream_http.rs"
[[test]]
name = "types_error_coverage"
path = "tests/types_error_coverage.rs"
[dependencies.af-context]
version = "=0.4.0"
[dependencies.futures]
version = "0.3"
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"rustls-tls",
"stream",
]
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"time",
"sync",
]
[dependencies.tracing]
version = "0.1"
[dev-dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"time",
"sync",
"test-util",
"macros",
"rt",
]