Re-exports§
pub use loop_runner::ResolvedRun;
Modules§
- activity
- Activity state manager and event emission.
- control
- Loop runtime state aliases.
- loop_
runner - Agent loop implementation with Phase-based plugin execution.
- run_
context - streaming
- Streaming response handling for LLM responses.
Structs§
- AgentOs
- Background
Capable - Wraps a tool that implements
BackgroundExecutableto provide full task lifecycle management: - Background
Task Manager - Thread-scoped background task manager.
- Background
Task View - Lightweight derived projection for prompt injection and UI summaries on the owner thread. This is a cache, not the source of truth.
- Background
Task View State - Lightweight cached task view stored on the owner thread for prompt injection. The canonical task state remains in the task thread.
- Background
Tasks Plugin - Behavior that keeps a lightweight owner-thread task projection in sync and injects reminders about active background tasks.
- Consecutive
Errors - Stop after N consecutive rounds where all tool executions failed.
- Content
Match - Stop when LLM output text contains a literal pattern.
- Context
Plugin - Unified context plugin: logical compression + hard truncation + prompt caching.
- Forwarded
Decision - Loop
Detection - Stop when the same tool call pattern repeats within a sliding window.
- MaxRounds
- Stop after a fixed number of tool-call rounds.
- NewTask
Spec - Prepared
Run - Fully prepared run payload ready for execution.
- RunStream
- Result of
AgentOs::run_stream: an event stream plus metadata. - Stop
OnTool - Stop when a specific tool is called by the LLM.
- Stop
Policy Input - Canonical stop-policy input.
- Stop
Policy Plugin - Plugin adapter that evaluates configured stop policies at
AfterInference. - Stop
Policy Stats - Aggregated runtime stats consumed by stop policies.
- Task
Cancel Tool - Cancel a running background task and any descendant tasks.
- Task
Output Tool - Read the output of a background task.
- Task
State - Durable task state stored inside a dedicated task thread (
task:<task_id>). - Task
Status Tool - Query background task status and result.
- Task
Store - Task
Summary - Summary of a background task visible to tools and plugins.
- Timeout
- Stop after a wall-clock duration elapses.
- Token
Budget - Stop when cumulative token usage exceeds a budget.
Enums§
- Agent
OsResolve Error - Agent
OsRun Error - Background
Task View Action - Task
Action - Reducer actions for durable task state.
- Task
Result - Result produced by a background task on completion.
- Task
Result Ref - Durable reference to task output stored elsewhere.
- Task
Status - Status of a background task.
- Task
Store Error
Constants§
- BACKGROUND_
TASKS_ PLUGIN_ ID - CONTEXT_
PLUGIN_ ID - Behavior ID used for registration.
- TASK_
CANCEL_ TOOL_ ID - TASK_
OUTPUT_ TOOL_ ID - TASK_
STATUS_ TOOL_ ID
Traits§
- Background
Executable - Context-free background execution trait.
- Stop
Policy - Stop-policy contract used by
super::StopPolicyPlugin.
Functions§
- compose_
behaviors - Compose multiple behaviors into a single
AgentBehavior.
Type Aliases§
- TaskId
- Unique identifier for a background task.