open-agent-sdk 0.6.4

Production-ready Rust SDK for building AI agents with local OpenAI-compatible servers (LMStudio, Ollama, llama.cpp, vLLM). Features streaming, tools, hooks, retry logic, and comprehensive examples.
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"
rust-version = "1.85"
name = "open-agent-sdk"
version = "0.6.4"
authors = ["Stephen Brandon"]
build = false
exclude = [
    ".gitignore",
    ".github/",
    "tests/fixtures/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Production-ready Rust SDK for building AI agents with local OpenAI-compatible servers (LMStudio, Ollama, llama.cpp, vLLM). Features streaming, tools, hooks, retry logic, and comprehensive examples."
homepage = "https://github.com/slb350/open-agent-sdk-rust"
documentation = "https://docs.rs/open-agent-sdk"
readme = "README.md"
keywords = [
    "ai",
    "llm",
    "agent",
    "openai",
    "local",
]
categories = [
    "api-bindings",
    "asynchronous",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/slb350/open-agent-sdk-rust"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[lib]
name = "open_agent"
path = "src/lib.rs"
bench = false

[[example]]
name = "advanced_patterns"
path = "examples/advanced_patterns.rs"

[[example]]
name = "auto_execution_demo"
path = "examples/auto_execution_demo.rs"

[[example]]
name = "calculator_tools"
path = "examples/calculator_tools.rs"

[[example]]
name = "context_management"
path = "examples/context_management.rs"

[[example]]
name = "git_commit_agent"
path = "examples/git_commit_agent.rs"

[[example]]
name = "hooks_example"
path = "examples/hooks_example.rs"

[[example]]
name = "interrupt_demo"
path = "examples/interrupt_demo.rs"

[[example]]
name = "log_analyzer_agent"
path = "examples/log_analyzer_agent.rs"

[[example]]
name = "multi_tool_agent"
path = "examples/multi_tool_agent.rs"

[[example]]
name = "simple_query"
path = "examples/simple_query.rs"

[[example]]
name = "test_tool_serialization"
path = "examples/test_tool_serialization.rs"

[[example]]
name = "vision_api_demo"
path = "examples/vision_api_demo.rs"

[[example]]
name = "vision_example"
path = "examples/vision_example.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "performance"
path = "benches/performance.rs"
harness = false

[dependencies.anyhow]
version = "1.0"

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

[dependencies.base64]
version = "0.22"

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

[dependencies.futures]
version = "0.3.32"

[dependencies.log]
version = "0.4.29"

[dependencies.rand]
version = "0.8"

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

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "1.0"

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

[dependencies.tokio-stream]
version = "0.1"

[dev-dependencies.criterion]
version = "0.5"

[dev-dependencies.env_logger]
version = "0.11"

[dev-dependencies.regex]
version = "1.10"

[dev-dependencies.tokio-test]
version = "0.4"