[package]
edition = "2024"
name = "guardflow"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Validators and a retry-until-valid guard for LLM output, in Rust"
readme = "README.md"
keywords = [
"llm",
"validation",
"guardrails",
"agent",
"ai",
]
categories = [
"asynchronous",
"development-tools",
]
license = "MIT"
repository = "https://github.com/thaicn1712/guardflow"
[features]
graphflow = [
"dep:async-trait",
"dep:graph-flow",
]
json-schema = ["dep:jsonschema"]
[lib]
name = "guardflow"
path = "guardflow/guard.rs"
[[test]]
name = "graphflow_integration"
path = "tests/graphflow_integration.rs"
required-features = ["graphflow"]
[[test]]
name = "integration"
path = "tests/integration.rs"
[[test]]
name = "json_schema"
path = "tests/json_schema.rs"
required-features = ["json-schema"]
[[bench]]
name = "overhead"
path = "benches/overhead.rs"
harness = false
[dependencies.async-trait]
version = "0.1"
optional = true
[dependencies.graph-flow]
version = "0.6"
optional = true
[dependencies.jsonschema]
version = "0.49"
optional = true
[dependencies.regex]
version = "1"
[dependencies.serde_json]
version = "1"
[dev-dependencies.criterion]
version = "0.8"
[dev-dependencies.tokio]
version = "1"
features = ["full"]