[package]
edition = "2024"
rust-version = "1.85"
name = "ag-ui"
version = "1.0.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust SDK for AG-UI 1.0 with protocol types, SSE, a server runtime for hosting agents, and a client runtime for consuming them."
readme = "README.md"
keywords = [
"ag-ui",
"agent",
"llm",
"protocol",
]
categories = [
"web-programming",
"asynchronous",
]
license = "MIT"
repository = "https://github.com/KimSoungRyoul/ag-ui-rust"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
axum = [
"server",
"sse",
"dep:axum",
]
client = [
"dep:futures-core",
"dep:futures-util",
"dep:json-patch",
"dep:getrandom",
"dep:jiff",
"dep:js-sys",
]
default = [
"sse",
"verify",
]
http = [
"client",
"sse",
"dep:reqwest",
"dep:tokio",
]
protobuf = []
schemars = ["dep:schemars"]
server = [
"dep:futures-core",
"dep:futures-channel",
"dep:futures-util",
"dep:json-patch",
]
sse = []
utoipa = ["dep:utoipa"]
verify = []
[lib]
name = "ag_ui"
path = "src/lib.rs"
[[example]]
name = "semantic_probe"
path = "examples/semantic_probe.rs"
[[test]]
name = "axum_frames"
path = "tests/axum_frames.rs"
[[test]]
name = "axum_http"
path = "tests/axum_http.rs"
[[test]]
name = "axum_input_1_0"
path = "tests/axum_input_1_0.rs"
[[test]]
name = "axum_input_warnings"
path = "tests/axum_input_warnings.rs"
[[test]]
name = "client_bounds"
path = "tests/client_bounds.rs"
[[test]]
name = "client_chunks"
path = "tests/client_chunks.rs"
[[test]]
name = "client_conformance_1_0"
path = "tests/client_conformance_1_0.rs"
[[test]]
name = "client_features"
path = "tests/client_features.rs"
[[test]]
name = "client_http_content_type"
path = "tests/client_http_content_type.rs"
[[test]]
name = "client_http_error"
path = "tests/client_http_error.rs"
[[test]]
name = "client_interrupts"
path = "tests/client_interrupts.rs"
[[test]]
name = "client_legacy_content"
path = "tests/client_legacy_content.rs"
[[test]]
name = "client_linear_time"
path = "tests/client_linear_time.rs"
[[test]]
name = "client_merge"
path = "tests/client_merge.rs"
[[test]]
name = "client_reasoning"
path = "tests/client_reasoning.rs"
[[test]]
name = "client_run"
path = "tests/client_run.rs"
[[test]]
name = "client_sequential_runs"
path = "tests/client_sequential_runs.rs"
[[test]]
name = "client_snapshot_mid_item"
path = "tests/client_snapshot_mid_item.rs"
[[test]]
name = "client_sse"
path = "tests/client_sse.rs"
[[test]]
name = "client_state"
path = "tests/client_state.rs"
[[test]]
name = "client_subagents"
path = "tests/client_subagents.rs"
[[test]]
name = "client_thread"
path = "tests/client_thread.rs"
[[test]]
name = "client_thread_1_0"
path = "tests/client_thread_1_0.rs"
[[test]]
name = "client_transport_boundary"
path = "tests/client_transport_boundary.rs"
[[test]]
name = "client_verify"
path = "tests/client_verify.rs"
[[test]]
name = "client_warnings"
path = "tests/client_warnings.rs"
[[test]]
name = "client_what_a_run_leaves"
path = "tests/client_what_a_run_leaves.rs"
[[test]]
name = "conformance_1_0"
path = "tests/conformance_1_0.rs"
[[test]]
name = "event_verifier"
path = "tests/event_verifier.rs"
[[test]]
name = "events"
path = "tests/events.rs"
[[test]]
name = "fixtures_1_0"
path = "tests/fixtures_1_0.rs"
[[test]]
name = "ids"
path = "tests/ids.rs"
[[test]]
name = "messages"
path = "tests/messages.rs"
[[test]]
name = "optional_null_input"
path = "tests/optional_null_input.rs"
[[test]]
name = "optional_null_output"
path = "tests/optional_null_output.rs"
[[test]]
name = "outcome_1_0"
path = "tests/outcome_1_0.rs"
[[test]]
name = "patch"
path = "tests/patch.rs"
[[test]]
name = "protocol_cost"
path = "tests/protocol_cost.rs"
[[test]]
name = "server_1_0_output"
path = "tests/server_1_0_output.rs"
[[test]]
name = "server_bounds"
path = "tests/server_bounds.rs"
[[test]]
name = "server_cancel"
path = "tests/server_cancel.rs"
[[test]]
name = "server_detached"
path = "tests/server_detached.rs"
[[test]]
name = "server_drop_terminates"
path = "tests/server_drop_terminates.rs"
[[test]]
name = "server_join"
path = "tests/server_join.rs"
[[test]]
name = "server_lifecycle"
path = "tests/server_lifecycle.rs"
[[test]]
name = "server_scripted"
path = "tests/server_scripted.rs"
[[test]]
name = "server_subagents"
path = "tests/server_subagents.rs"
[[test]]
name = "server_transformers"
path = "tests/server_transformers.rs"
[[test]]
name = "server_verify"
path = "tests/server_verify.rs"
[[test]]
name = "snapshots"
path = "tests/snapshots.rs"
[[test]]
name = "sse"
path = "tests/sse.rs"
[[test]]
name = "subagent"
path = "tests/subagent.rs"
[[test]]
name = "token_usage_1_0"
path = "tests/token_usage_1_0.rs"
[[test]]
name = "tool_content_1_0"
path = "tests/tool_content_1_0.rs"
[[test]]
name = "upstream_payloads"
path = "tests/upstream_payloads.rs"
[dependencies.axum]
version = "0.8.9"
optional = true
[dependencies.futures-channel]
version = "0.3.34"
optional = true
[dependencies.futures-core]
version = "0.3.34"
optional = true
[dependencies.futures-util]
version = "0.3.34"
features = ["std"]
optional = true
default-features = false
[dependencies.jiff]
version = "1.0.1"
optional = true
default-features = false
[dependencies.json-patch]
version = "4.2.0"
optional = true
[dependencies.reqwest]
version = "0.13.4"
features = [
"json",
"stream",
"rustls",
"charset",
"http2",
]
optional = true
default-features = false
[dependencies.schemars]
version = "1.2.2"
optional = true
[dependencies.serde]
version = "1.0.229"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.151"
[dependencies.thiserror]
version = "2.0.20"
[dependencies.tokio]
version = "1.53.1"
features = [
"rt",
"sync",
"macros",
"time",
]
optional = true
[dependencies.utoipa]
version = "5.5.0"
optional = true
[dev-dependencies.futures-util]
version = "0.3.34"
features = [
"std",
"std",
]
default-features = false
[dev-dependencies.insta]
version = "1"
features = ["json"]
[dev-dependencies.tokio]
version = "1.53.1"
features = [
"rt",
"sync",
"macros",
"rt",
"rt-multi-thread",
"macros",
"net",
"io-util",
"time",
]
[dev-dependencies.tower]
version = "0.5.3"
features = ["util"]
[target.'cfg(not(target_family = "wasm"))'.dependencies.getrandom]
version = "0.2.16"
optional = true
[target.'cfg(target_family = "wasm")'.dependencies.getrandom]
version = "0.2.16"
features = ["js"]
optional = true
[target.'cfg(target_family = "wasm")'.dependencies.js-sys]
version = "0.3"
optional = true