tinyagents 1.0.0

A recursive language-model (RLM) harness for Rust.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "tinyagents"
version = "1.0.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A recursive language-model (RLM) harness for Rust."
readme = "README.md"
keywords = [
    "llm",
    "agents",
    "graph",
    "langchain",
    "langgraph",
]
categories = [
    "asynchronous",
    "api-bindings",
]
license = "GPL-3.0-only"
repository = "https://github.com/tinyhumansai/tinyagents"

[features]
default = []
openai = ["dep:reqwest"]
repl = ["dep:rhai"]
sqlite = ["dep:rusqlite"]

[lib]
name = "tinyagents"
path = "src/lib.rs"

[[example]]
name = "agent_loop_tools"
path = "examples/agent_loop_tools.rs"

[[example]]
name = "basic_graph"
path = "examples/basic_graph.rs"

[[example]]
name = "complex_graph"
path = "examples/complex_graph.rs"

[[example]]
name = "durable_graph"
path = "examples/durable_graph.rs"

[[example]]
name = "openai_chat"
path = "examples/openai_chat.rs"
required-features = ["openai"]

[[example]]
name = "openai_graph_agent"
path = "examples/openai_graph_agent.rs"
required-features = ["openai"]

[[example]]
name = "openai_self_blueprint"
path = "examples/openai_self_blueprint.rs"
required-features = ["openai"]

[[example]]
name = "openai_structured"
path = "examples/openai_structured.rs"
required-features = ["openai"]

[[example]]
name = "openai_tools"
path = "examples/openai_tools.rs"
required-features = ["openai"]

[[example]]
name = "orchestrator_subagents"
path = "examples/orchestrator_subagents.rs"
required-features = ["openai"]

[[example]]
name = "rag_blueprint"
path = "examples/rag_blueprint.rs"

[[test]]
name = "e2e_agent_graph"
path = "tests/e2e_agent_graph.rs"

[[test]]
name = "e2e_complex_graph"
path = "tests/e2e_complex_graph.rs"

[[test]]
name = "e2e_durable_interrupt"
path = "tests/e2e_durable_interrupt.rs"

[[test]]
name = "e2e_embeddings"
path = "tests/e2e_embeddings.rs"

[[test]]
name = "e2e_fuzz_graph_agents"
path = "tests/e2e_fuzz_graph_agents.rs"

[[test]]
name = "e2e_graph_export"
path = "tests/e2e_graph_export.rs"

[[test]]
name = "e2e_graph_resolver_contracts"
path = "tests/e2e_graph_resolver_contracts.rs"

[[test]]
name = "e2e_graph_subagent_node"
path = "tests/e2e_graph_subagent_node.rs"

[[test]]
name = "e2e_graph_support_contracts"
path = "tests/e2e_graph_support_contracts.rs"

[[test]]
name = "e2e_harness_provider_contracts"
path = "tests/e2e_harness_provider_contracts.rs"

[[test]]
name = "e2e_language_contracts"
path = "tests/e2e_language_contracts.rs"

[[test]]
name = "e2e_middleware"
path = "tests/e2e_middleware.rs"

[[test]]
name = "e2e_middleware_parser_contracts"
path = "tests/e2e_middleware_parser_contracts.rs"

[[test]]
name = "e2e_misc_public_helpers"
path = "tests/e2e_misc_public_helpers.rs"

[[test]]
name = "e2e_observability"
path = "tests/e2e_observability.rs"

[[test]]
name = "e2e_orchestrator_subagents"
path = "tests/e2e_orchestrator_subagents.rs"

[[test]]
name = "e2e_parallel_agents"
path = "tests/e2e_parallel_agents.rs"

[[test]]
name = "e2e_public_api_contracts"
path = "tests/e2e_public_api_contracts.rs"

[[test]]
name = "e2e_rag_pipeline"
path = "tests/e2e_rag_pipeline.rs"

[[test]]
name = "e2e_registry_binding"
path = "tests/e2e_registry_binding.rs"

[[test]]
name = "e2e_registry_observability_contracts"
path = "tests/e2e_registry_observability_contracts.rs"

[[test]]
name = "e2e_repl_blueprint"
path = "tests/e2e_repl_blueprint.rs"

[[test]]
name = "e2e_steering"
path = "tests/e2e_steering.rs"

[[test]]
name = "e2e_streaming_cancel"
path = "tests/e2e_streaming_cancel.rs"

[[test]]
name = "e2e_subagent_error"
path = "tests/e2e_subagent_error.rs"

[[test]]
name = "e2e_subagent_reuse"
path = "tests/e2e_subagent_reuse.rs"

[[test]]
name = "e2e_subagent_timeout"
path = "tests/e2e_subagent_timeout.rs"

[[test]]
name = "e2e_subagents"
path = "tests/e2e_subagents.rs"

[[test]]
name = "graph_durable"
path = "tests/graph_durable.rs"

[[test]]
name = "harness_agent_loop"
path = "tests/harness_agent_loop.rs"

[[test]]
name = "language_pipeline"
path = "tests/language_pipeline.rs"

[[test]]
name = "live_cache"
path = "tests/live_cache.rs"

[[test]]
name = "live_checkpoint_resume"
path = "tests/live_checkpoint_resume.rs"

[[test]]
name = "live_orchestrator_subagents"
path = "tests/live_orchestrator_subagents.rs"

[[test]]
name = "live_steering"
path = "tests/live_steering.rs"

[[test]]
name = "live_streaming"
path = "tests/live_streaming.rs"

[[test]]
name = "live_subagent_error"
path = "tests/live_subagent_error.rs"

[[test]]
name = "live_subagent_reuse"
path = "tests/live_subagent_reuse.rs"

[[test]]
name = "live_subagent_timeout"
path = "tests/live_subagent_timeout.rs"

[[test]]
name = "live_subagents"
path = "tests/live_subagents.rs"

[[test]]
name = "repl_session"
path = "tests/repl_session.rs"

[[test]]
name = "serialization"
path = "tests/serialization.rs"

[dependencies.async-trait]
version = "0.1"

[dependencies.futures]
version = "0.3"

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
    "stream",
]
optional = true
default-features = false

[dependencies.rhai]
version = "1"
features = ["sync"]
optional = true

[dependencies.rusqlite]
version = "0.40"
features = ["bundled"]
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "sync",
    "time",
    "macros",
]
default-features = false

[dev-dependencies.dotenvy]
version = "0.15"

[dev-dependencies.futures]
version = "0.3"

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "time",
    "test-util",
]