Installation

Requirements

  • Rust 1.86+ (2021 edition)
  • Tokio async runtime

Add to Cargo.toml

[dependencies]
yoagent = "0.12"
tokio = { version = "1", features = ["full"] }

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_yaml_ngAuto-generate tools from OpenAPI 3.0 specs

Enable in Cargo.toml:

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