agentix 0.18.4

Multi-provider LLM client for Rust — streaming, non-streaming, tool calls, MCP, DeepSeek, OpenAI, Anthropic, Gemini
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 = "agentix"
version = "0.18.4"
authors = ["ozongzi <ozongzi@icloud.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Multi-provider LLM client for Rust — streaming, non-streaming, tool calls, MCP, DeepSeek, OpenAI, Anthropic, Gemini"
readme = "README.md"
keywords = [
    "llm",
    "agent",
    "ai",
    "deepseek",
    "openai",
]
categories = [
    "api-bindings",
    "web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ozongzi/agentix"
resolver = "2"

[features]
claude-code = [
    "mcp-server",
    "dep:uuid",
]
mcp = [
    "dep:rmcp",
    "rmcp/client",
    "rmcp/transport-child-process",
    "rmcp/transport-streamable-http-client-reqwest",
]
mcp-server = [
    "dep:rmcp",
    "rmcp/server",
    "rmcp/transport-io",
    "rmcp/transport-streamable-http-server",
    "dep:axum",
    "dep:base64",
]
sensitive-logs = []

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

[[example]]
name = "01_streaming"
path = "examples/01_streaming.rs"

[[example]]
name = "02_completion"
path = "examples/02_completion.rs"

[[example]]
name = "03_conversation"
path = "examples/03_conversation.rs"

[[example]]
name = "04_tools"
path = "examples/04_tools.rs"

[[example]]
name = "05_mcp_client"
path = "examples/05_mcp_client.rs"

[[example]]
name = "06_mcp_server"
path = "examples/06_mcp_server.rs"

[[example]]
name = "07_agent"
path = "examples/07_agent.rs"

[[example]]
name = "08_structured_output"
path = "examples/08_structured_output.rs"

[[example]]
name = "09_deep_research"
path = "examples/09_deep_research.rs"

[[example]]
name = "10_claude_code"
path = "examples/10_claude_code.rs"
required-features = ["claude-code"]

[[test]]
name = "agent"
path = "tests/agent.rs"

[[test]]
name = "agent_turns"
path = "tests/agent_turns.rs"

[[test]]
name = "llm_client"
path = "tests/llm_client.rs"

[[test]]
name = "mcp_server"
path = "tests/mcp_server.rs"

[[test]]
name = "provider_integration"
path = "tests/provider_integration.rs"

[[test]]
name = "readme_examples"
path = "tests/readme_examples.rs"

[[test]]
name = "smoke_cache"
path = "tests/smoke_cache.rs"

[[test]]
name = "tool_return_types"
path = "tests/tool_return_types.rs"

[dependencies.agentix-macros]
version = "0.5.1"

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

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

[dependencies.axum]
version = "0.8"
features = [
    "http1",
    "tokio",
]
optional = true
default-features = false

[dependencies.base64]
version = "0.22"
optional = true

[dependencies.eventsource-stream]
version = "0.2.3"

[dependencies.futures]
version = "0.3.31"

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "stream",
]

[dependencies.rmcp]
version = "1.1"
optional = true

[dependencies.schemars]
version = "0.8"

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "1.0"

[dependencies.tiktoken-rs]
version = "0.6"

[dependencies.tokio]
version = "1.49.0"
features = ["full"]

[dependencies.tokio-util]
version = "0.7.18"
features = ["net"]

[dependencies.tracing]
version = "0.1"

[dependencies.uuid]
version = "1"
features = ["v4"]
optional = true

[dev-dependencies.axum]
version = "0.8"
features = [
    "http1",
    "tokio",
]

[dev-dependencies.tokio]
version = "1.49.0"
features = [
    "macros",
    "rt-multi-thread",
]

[dev-dependencies.tokio-stream]
version = "0.1"
features = ["sync"]

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
    "fmt",
    "env-filter",
]