[package]
edition = "2021"
rust-version = "1.75"
name = "yoagent"
version = "0.7.5"
authors = ["Yuanhao <yuanhao@yolog.dev>"]
build = false
exclude = [
"docs/images/*",
"docs/theme/*",
".github/*",
"scripts/*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Simple, effective agent loop with tool execution and event streaming"
homepage = "https://yologdev.github.io/yoagent/"
documentation = "https://yologdev.github.io/yoagent/"
readme = "README.md"
keywords = [
"agent",
"llm",
"ai",
"tools",
"streaming",
]
categories = [
"api-bindings",
"asynchronous",
]
license = "MIT"
repository = "https://github.com/yologdev/yoagent"
[features]
openapi = [
"dep:openapiv3",
"dep:serde_yaml",
]
[lib]
name = "yoagent"
path = "src/lib.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "callbacks"
path = "examples/callbacks.rs"
[[example]]
name = "cli"
path = "examples/cli.rs"
[[example]]
name = "persistence"
path = "examples/persistence.rs"
[[example]]
name = "sub_agent"
path = "examples/sub_agent.rs"
[[test]]
name = "agent_loop_test"
path = "tests/agent_loop_test.rs"
[[test]]
name = "agent_test"
path = "tests/agent_test.rs"
[[test]]
name = "integration_anthropic"
path = "tests/integration_anthropic.rs"
[[test]]
name = "openapi_test"
path = "tests/openapi_test.rs"
[[test]]
name = "serialization_test"
path = "tests/serialization_test.rs"
[[test]]
name = "sub_agent_test"
path = "tests/sub_agent_test.rs"
[[test]]
name = "tools_test"
path = "tests/tools_test.rs"
[dependencies.async-trait]
version = "0.1"
[dependencies.base64]
version = "0.22"
[dependencies.futures]
version = "0.3"
[dependencies.openapiv3]
version = "2"
optional = true
[dependencies.rand]
version = "0.10.0"
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"stream",
]
[dependencies.reqwest-eventsource]
version = "0.6"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.serde_yaml]
version = "0.9"
optional = true
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = ["full"]
[dependencies.tokio-stream]
version = "0.1"
[dependencies.tokio-util]
version = "0.7"
[dependencies.tracing]
version = "0.1"
[dependencies.uuid]
version = "1"
features = ["v4"]
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tokio]
version = "1"
features = [
"full",
"test-util",
]
[dev-dependencies.wiremock]
version = "0.6"