docs.rs failed to build brainwires-inference-0.11.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
brainwires-inference
LLM-driven workhorses for the Brainwires Agent Framework.
What this crate is
Everything in the framework that drives an LLM call (chat /
completion / structured output) or constructs prompts for one.
Extracted from brainwires-agent in 0.11 (Phase 11f) to separate the
"what holds agents together" half (brainwires-agent, the
coordination crate) from the "what makes them think" half (this
crate).
Modules
chat_agent— streaming chat completion loop with per-user session management. The everyday workhorse.task_agent— autonomous task execution loop with tool dispatch, validation, and lifecycle hooksruntime—AgentRuntime+run_agent_loop— generic agentic loop drivercontext—AgentContextconfig + theAgentLifecycleHookstrait objectagent_hooks—AgentLifecycleHookstrait (lifecycle interception during aTaskAgentrun)pool—AgentPool(TaskAgent pool with concurrent spawning + monitoring)task_orchestrator—TaskOrchestrator(dependency-aware scheduling across a pool of TaskAgents)cycle_orchestrator—CycleOrchestrator(Plan→Work→Judge cycle driver)plan_executor—PlanExecutorAgent(executes an LLM-generated plan with approval modes)validation_loop—run_validationquality-check gate before agent completionvalidation_agent— rule-based + LLM-driven validationvalidator_agent— LLM judge for ad-hoc validationplanner_agent— LLM-powered dynamic task planningjudge_agent— LLM-powered cycle evaluationsummarization— history compaction via LLMsystem_prompts— registry of agent prompt templates (AgentPromptKind,build_agent_prompt, etc.)
Dependency direction
brainwires-core
↑
brainwires-agent (coordination + patterns + schema)
↑
brainwires-inference (this crate — agent runtime + LLM-driven helpers)
inference depends on agent for coordination types
(CommunicationHub, FileLockManager, ResourceChecker, etc.).
That's the intended arrow: inference USES coordination.
Features
| Flag | Default | Enables |
|---|---|---|
native |
yes | filesystem + process — needed by validation, sandbox |
wasm |
off | wasm-compatible build (drops native features) |
otel |
off | OpenTelemetry span export for agent execution traces |
Migration from brainwires-agent
# Before
= "0.10"
# After — pull both
= "0.11" # coordination
= "0.11" # workhorses
# Or via the umbrella facade (default features include both):
= { = "0.11", = ["full"] }
// Before
use ;
use AgentPromptKind;
// After
use ;
use AgentPromptKind;
// Or via the facade — old paths keep working:
use ;
use AgentRuntime;
License
MIT OR Apache-2.0