[package]
edition = "2024"
rust-version = "1.94"
name = "loopctl"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A trait-based framework for building agent loops with pluggable LLM clients, tools, and memory"
homepage = "https://github.com/dch-labs/loopctl"
documentation = "https://docs.rs/loopctl"
readme = "README.md"
keywords = [
"agent",
"framework",
"llm",
"loop",
]
categories = [
"api-bindings",
"development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/dch-labs/loopctl"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
anthropic = [
"providers",
"streaming",
]
deepseek = [
"providers",
"openai",
]
default = []
gemini = [
"providers",
"streaming",
]
grammar = ["providers"]
grok = [
"providers",
"openai",
]
hooks = []
ollama = [
"providers",
"openai",
]
openai = [
"providers",
"streaming",
]
providers = [
"dep:reqwest",
"dep:httpdate",
"dep:bytes",
]
schema_validation = ["dep:jsonschema"]
streaming = ["dep:async-stream"]
testing = []
tool_health = []
tool_shield = ["tool_health"]
xai = ["grok"]
zai = [
"providers",
"anthropic",
]
[lib]
name = "loopctl"
path = "src/lib.rs"
[[example]]
name = "chat"
path = "examples/chat.rs"
required-features = [
"testing",
"providers",
]
[[example]]
name = "echo-tool-cli"
path = "examples/echo-tool-cli.rs"
required-features = ["testing"]
[[example]]
name = "hello-cli"
path = "examples/hello-cli.rs"
required-features = ["testing"]
[[example]]
name = "repl-cli"
path = "examples/repl-cli.rs"
required-features = ["testing"]
[[test]]
name = "constrained_decode"
path = "tests/constrained_decode.rs"
[[test]]
name = "examples_e2e"
path = "tests/examples_e2e.rs"
[[test]]
name = "helpers"
path = "tests/helpers.rs"
[[test]]
name = "provider_e2e"
path = "tests/provider_e2e.rs"
[[test]]
name = "provider_survival"
path = "tests/provider_survival.rs"
[[test]]
name = "structured_output"
path = "tests/structured_output.rs"
[dependencies.async-stream]
version = "0.3"
optional = true
[dependencies.bytes]
version = "1"
optional = true
[dependencies.fastrand]
version = "2"
[dependencies.futures]
version = "0.3"
[dependencies.httpdate]
version = "1"
optional = true
[dependencies.jsonschema]
version = "0.49"
optional = true
[dependencies.reqwest]
version = "0.13"
features = [
"json",
"stream",
"rustls",
]
optional = true
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.serde_repr]
version = "0.1"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1.52.3"
features = [
"sync",
"macros",
"time",
]
[dependencies.tokio-util]
version = "0.7"
features = ["rt"]
[dependencies.tracing]
version = "0.1"
[dependencies.uuid]
version = "1"
features = [
"v4",
"serde",
]
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.tokio]
version = "1.52.3"
features = [
"rt-multi-thread",
"macros",
"sync",
"time",
"signal",
]
[lints.clippy]
arithmetic_side_effects = "deny"
clone_on_ref_ptr = "deny"
expect_used = "deny"
indexing_slicing = "deny"
let_underscore_must_use = "deny"
match_same_arms = "deny"
panic = "deny"
redundant_clone = "deny"
todo = "deny"
unimplemented = "deny"
unreachable = "deny"
unwrap_used = "deny"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[profile.release]
lto = "fat"
codegen-units = 1
strip = true