Installation

Requirements

  • Rust 2021 edition (1.56+, recommended 1.75+)
  • Tokio async runtime

Add to Cargo.toml

[dependencies]
yoagent = "0.5"

Dependencies

yoagent brings in these key dependencies automatically:

CratePurpose
tokioAsync runtime (full features)
serde / serde_jsonSerialization
reqwestHTTP client for provider APIs
reqwest-eventsourceSSE streaming
async-traitAsync trait support
tokio-utilCancellationToken
thiserrorError types
tracingLogging

Feature Flags

All providers and built-in tools are included by default. Optional features:

FeatureDependenciesDescription
openapiopenapiv3, serde_yamlAuto-generate tools from OpenAPI 3.0 specs

Enable in Cargo.toml:

[dependencies]
yoagent = { version = "0.5", features = ["openapi"] }