[package]
edition = "2024"
name = "tinyagents"
version = "2.1.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 = []
repl = ["dep:rhai"]
rlm = [
"dep:rhai",
"tokio/process",
"tokio/io-util",
]
sqlite = ["dep:rusqlite"]
tools = ["dep:chrono-tz"]
[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 = "goals_and_todos"
path = "examples/goals_and_todos.rs"
[[example]]
name = "local_model_probe"
path = "examples/local_model_probe.rs"
[[example]]
name = "openai_chat"
path = "examples/openai_chat.rs"
[[example]]
name = "openai_graph_agent"
path = "examples/openai_graph_agent.rs"
[[example]]
name = "openai_self_blueprint"
path = "examples/openai_self_blueprint.rs"
[[example]]
name = "openai_structured"
path = "examples/openai_structured.rs"
[[example]]
name = "openai_tools"
path = "examples/openai_tools.rs"
[[example]]
name = "orchestrator_subagents"
path = "examples/orchestrator_subagents.rs"
[[example]]
name = "rag_blueprint"
path = "examples/rag_blueprint.rs"
[[example]]
name = "resilient_graph"
path = "examples/resilient_graph.rs"
[[example]]
name = "rlm_python"
path = "examples/rlm_python.rs"
required-features = ["rlm"]
[[example]]
name = "rlm_rhai"
path = "examples/rlm_rhai.rs"
required-features = ["rlm"]
[[example]]
name = "subconscious_loop"
path = "examples/subconscious_loop/main.rs"
[[test]]
name = "conformance"
path = "tests/conformance.rs"
[[test]]
name = "e2e_agent_graph"
path = "tests/e2e_agent_graph.rs"
[[test]]
name = "e2e_budget"
path = "tests/e2e_budget.rs"
[[test]]
name = "e2e_complex_graph"
path = "tests/e2e_complex_graph.rs"
[[test]]
name = "e2e_control_and_steer"
path = "tests/e2e_control_and_steer.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_goals"
path = "tests/e2e_graph_goals.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_graph_todos"
path = "tests/e2e_graph_todos.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_parallel_and_journals"
path = "tests/e2e_parallel_and_journals.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_reasoning_and_selection"
path = "tests/e2e_reasoning_and_selection.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_rlm"
path = "tests/e2e_rlm.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 = "e2e_subconscious_loop_example"
path = "tests/e2e_subconscious_loop_example.rs"
[[test]]
name = "e2e_tool_policy"
path = "tests/e2e_tool_policy.rs"
[[test]]
name = "e2e_unknown_tool_policy"
path = "tests/e2e_unknown_tool_policy.rs"
[[test]]
name = "e2e_workspace_and_registry"
path = "tests/e2e_workspace_and_registry.rs"
[[test]]
name = "feature_error_contracts"
path = "tests/feature_error_contracts.rs"
[[test]]
name = "feature_graph_fanout"
path = "tests/feature_graph_fanout.rs"
[[test]]
name = "feature_graph_parallel"
path = "tests/feature_graph_parallel.rs"
[[test]]
name = "feature_graph_routing"
path = "tests/feature_graph_routing.rs"
[[test]]
name = "feature_graph_streaming"
path = "tests/feature_graph_streaming.rs"
[[test]]
name = "feature_harness_agent_loop"
path = "tests/feature_harness_agent_loop.rs"
[[test]]
name = "feature_harness_prompt"
path = "tests/feature_harness_prompt.rs"
[[test]]
name = "feature_harness_structured"
path = "tests/feature_harness_structured.rs"
[[test]]
name = "feature_infra_accounting"
path = "tests/feature_infra_accounting.rs"
[[test]]
name = "feature_infra_context"
path = "tests/feature_infra_context.rs"
[[test]]
name = "feature_infra_control"
path = "tests/feature_infra_control.rs"
[[test]]
name = "feature_infra_embeddings"
path = "tests/feature_infra_embeddings.rs"
[[test]]
name = "feature_infra_observability"
path = "tests/feature_infra_observability.rs"
[[test]]
name = "feature_infra_persistence"
path = "tests/feature_infra_persistence.rs"
[[test]]
name = "feature_infra_resilience"
path = "tests/feature_infra_resilience.rs"
[[test]]
name = "feature_language_capability_binding"
path = "tests/feature_language_capability_binding.rs"
[[test]]
name = "feature_language_compiler_semantics"
path = "tests/feature_language_compiler_semantics.rs"
[[test]]
name = "feature_language_diff"
path = "tests/feature_language_diff.rs"
[[test]]
name = "feature_language_lexer"
path = "tests/feature_language_lexer.rs"
[[test]]
name = "feature_language_parser"
path = "tests/feature_language_parser.rs"
[[test]]
name = "feature_language_resolver_diagnostics"
path = "tests/feature_language_resolver_diagnostics.rs"
[[test]]
name = "feature_language_source_spans"
path = "tests/feature_language_source_spans.rs"
[[test]]
name = "feature_registry_catalog"
path = "tests/feature_registry_catalog.rs"
[[test]]
name = "feature_registry_diagnostics"
path = "tests/feature_registry_diagnostics.rs"
[[test]]
name = "feature_repl_graph_authoring"
path = "tests/feature_repl_graph_authoring.rs"
[[test]]
name = "feature_repl_session"
path = "tests/feature_repl_session.rs"
[[test]]
name = "feature_rlm_config"
path = "tests/feature_rlm_config.rs"
[[test]]
name = "feature_rlm_host"
path = "tests/feature_rlm_host.rs"
[[test]]
name = "feature_rlm_runner"
path = "tests/feature_rlm_runner.rs"
[[test]]
name = "feature_rlm_session"
path = "tests/feature_rlm_session.rs"
[[test]]
name = "feature_rlm_templates"
path = "tests/feature_rlm_templates.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_rlm"
path = "tests/live_rlm.rs"
[[test]]
name = "live_sdk_gaps"
path = "tests/live_sdk_gaps.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.bytes]
version = "1"
[dependencies.chrono]
version = "0.4"
[dependencies.chrono-tz]
version = "0.10"
optional = true
[dependencies.futures]
version = "0.3"
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"rustls-tls",
"stream",
]
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.11"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"sync",
"time",
"macros",
"rt",
"rt-multi-thread",
]
default-features = false
[dependencies.tracing]
version = "0.1"
[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",
]