Expand description
Agent runtime — AgentRunner, Orchestrator, workflow agents, guardrails, and supporting types.
Modules§
- audit
- Agent audit trail — structured records of LLM calls, tool invocations, and completions.
- batch
- Batch executor for running the same agent on multiple tasks with controlled concurrency.
- blackboard
- Shared blackboard for inter-agent state exchange in squad-based orchestration.
- cache
- LLM response caching for deterministic replay and cost reduction.
- context
- Context management strategy for long-running agent sessions.
- dag
- DAG (Directed Acyclic Graph) workflow agent.
- debate
- Debate workflow agent.
- evaluator
- Evaluator-Optimizer workflow agent.
- events
- Agent lifecycle events emitted during execution via the
OnEventcallback. - guardrail
Guardrailtrait andGuardAction— base types for all guardrail implementations.- guardrails
- Built-in guardrail implementations — LLM judge, secret scanner, PII detector, content fence, action budget, behavioral monitor, injection classifier, tool policy, and composition helpers.
- handoff
- Agent handoff runner.
- instructions
- Dynamic instruction loading from
.heartbit/INSTRUCTIONS.mdfiles. - mixture
- Mixture-of-Agents (MoA) workflow agent.
- observability
- Observability mode — controls tracing verbosity and metric emission.
- orchestrator
- Multi-agent orchestrator for parallel and sequential sub-agent delegation.
- permission
- Runtime permission rules for tool usage — deny, allow, and learned-via-HITL decisions.
- prompts
- Built-in system prompt fragments for multi-agent collaboration.
- pruner
- Session context pruner — trims old messages before LLM calls to control context size.
- routing
- Dynamic complexity-based agent routing.
- tenant_
tracker - Per-tenant in-flight token tracker with Arc-owning RAII reservations.
- token_
estimator - Lightweight token estimation for context budget management.
- tool_
filter - Dynamic tool filtering based on query classification.
- voting
- Majority-voting workflow agent.
- workflow
- Deterministic workflow agent primitives.
Structs§
- Agent
Output - Output of a completed agent run.
- Agent
Runner - Runs an agent loop: LLM call → tool execution → repeat until done.
- Agent
Runner Builder - Builder for
AgentRunner.
Type Aliases§
- OnInput
- Callback for interactive mode. Called when the agent needs more user input
(i.e., the LLM returned text without tool calls). Returns
Some(message)to continue the conversation, orNoneto end the session.