[package]
edition = "2024"
rust-version = "1.91"
name = "agent-sdk"
version = "0.9.1"
authors = ["Bipa <engineering@bipa.app>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust Agent SDK for building LLM agents"
homepage = "https://github.com/bipa-app/agent-sdk"
readme = "README.md"
keywords = [
"agent",
"llm",
"ai",
"anthropic",
"tools",
]
categories = [
"api-bindings",
"asynchronous",
]
license = "MIT"
repository = "https://github.com/bipa-app/agent-sdk"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
anthropic = ["agent-sdk-providers/anthropic"]
cloudflare = ["agent-sdk-providers/cloudflare"]
default = ["anthropic"]
gemini = ["agent-sdk-providers/gemini"]
macros-schema = [
"dep:schemars",
"agent-sdk-macros/schema-derive",
]
mcp = []
openai = ["agent-sdk-providers/openai"]
openai-codex = ["agent-sdk-providers/openai-codex"]
otel = ["opentelemetry"]
skills = ["dep:serde_yaml_ng"]
vertex = ["agent-sdk-providers/vertex"]
web = ["dep:html2text"]
[lib]
name = "agent_sdk"
path = "src/lib.rs"
[[example]]
name = "basic_agent"
path = "examples/basic_agent.rs"
[[example]]
name = "custom_hooks"
path = "examples/custom_hooks.rs"
[[example]]
name = "custom_tool"
path = "examples/custom_tool.rs"
[[example]]
name = "derive_tool"
path = "examples/derive_tool.rs"
[[example]]
name = "mcp_filesystem"
path = "examples/mcp_filesystem.rs"
required-features = ["mcp"]
[[example]]
name = "mcp_http_remote"
path = "examples/mcp_http_remote.rs"
required-features = ["mcp"]
[[example]]
name = "otel"
path = "examples/otel.rs"
required-features = ["otel"]
[[example]]
name = "server_turn_summary"
path = "examples/server_turn_summary.rs"
[[example]]
name = "streaming"
path = "examples/streaming.rs"
[[example]]
name = "structured_output"
path = "examples/structured_output.rs"
[[example]]
name = "tool_round_trip"
path = "examples/tool_round_trip.rs"
[[example]]
name = "typed_tool"
path = "examples/typed_tool.rs"
[[example]]
name = "with_primitive_tools"
path = "examples/with_primitive_tools.rs"
[[test]]
name = "cancel_async_listen_timeout"
path = "tests/cancel_async_listen_timeout.rs"
[[test]]
name = "cancel_lifecycle_matrix"
path = "tests/cancel_lifecycle_matrix.rs"
[[test]]
name = "cancel_llm_streaming"
path = "tests/cancel_llm_streaming.rs"
[[test]]
name = "cancel_mid_tool"
path = "tests/cancel_mid_tool.rs"
[[test]]
name = "ergonomics"
path = "tests/ergonomics.rs"
[[test]]
name = "facade_reexports"
path = "tests/facade_reexports.rs"
[[test]]
name = "macro_ergonomics"
path = "tests/macro_ergonomics.rs"
[[test]]
name = "macro_ui"
path = "tests/macro_ui.rs"
[[test]]
name = "mcp_http_transport"
path = "tests/mcp_http_transport.rs"
[[test]]
name = "observability_conformance"
path = "tests/observability_conformance.rs"
[[test]]
name = "observability_integration"
path = "tests/observability_integration.rs"
[[test]]
name = "panic_isolation"
path = "tests/panic_isolation.rs"
[[test]]
name = "structured_output"
path = "tests/structured_output.rs"
[[test]]
name = "typed_tool_validation"
path = "tests/typed_tool_validation.rs"
[dependencies.agent-sdk-foundation]
version = "0.9.1"
[dependencies.agent-sdk-macros]
version = "0.9.1"
[dependencies.agent-sdk-providers]
version = "0.9.1"
default-features = false
[dependencies.agent-sdk-tools]
version = "0.9.1"
[dependencies.anyhow]
version = "1"
[dependencies.async-stream]
version = "0.3"
[dependencies.async-trait]
version = "0.1"
[dependencies.base64]
version = "0.22"
[dependencies.bytes]
version = "1"
[dependencies.futures]
version = "0.3"
[dependencies.glob]
version = "0.3"
default-features = false
[dependencies.html2text]
version = "0.17.1"
optional = true
[dependencies.log]
version = "0.4"
features = ["kv_std"]
[dependencies.opentelemetry]
version = "0.32"
features = [
"trace",
"metrics",
]
optional = true
default-features = false
[dependencies.regex]
version = "1.12.3"
features = [
"std",
"unicode-perl",
]
default-features = false
[dependencies.reqwest]
version = "0.13.2"
features = [
"gzip",
"json",
"query",
"default-tls",
"stream",
"http2",
]
default-features = false
[dependencies.schemars]
version = "1"
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.serde_yaml_ng]
version = "0.10"
optional = true
[dependencies.thiserror]
version = "2"
[dependencies.time]
version = "0.3"
features = [
"serde",
"std",
"formatting",
"parsing",
]
[dependencies.tokio]
version = "1.52.0"
features = [
"sync",
"fs",
"process",
"time",
"macros",
]
[dependencies.tokio-stream]
version = "0.1"
[dependencies.tokio-util]
version = "0.7"
[dependencies.url]
version = "2"
[dependencies.uuid]
version = "1"
features = [
"v4",
"v7",
"serde",
]
[dev-dependencies.env_logger]
version = "0.11"
[dev-dependencies.opentelemetry_sdk]
version = "0.32"
features = [
"trace",
"metrics",
"rt-tokio",
"testing",
]
default-features = false
[dev-dependencies.schemars]
version = "1"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tokio]
version = "1.52.0"
features = [
"sync",
"fs",
"process",
"time",
"macros",
"rt-multi-thread",
"macros",
]
[dev-dependencies.trybuild]
version = "1"
[lints.clippy]
all = "warn"
nursery = "warn"
pedantic = "warn"
[lints.rust]
unsafe_code = "forbid"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(loom)",
"cfg(docsrs)",
]