Expand description
Ordered middleware and capability registration.
Modules§
- artifacts
- Agent-published session files and their frontend presentation.
- attachments
- User uploads exposed to the owning workspace.
- bots
- Gateway-backed Bot identity and collaboration capabilities.
- compaction
- Context compaction policy and provider routing.
- context_
offloading - Durable masking of stale tool output in active model context.
- extensions
- Standalone skills and activated Agent Plugin packages.
- instructions
- Bounded workspace instruction discovery.
- manifest
- Core-owned middleware configuration manifests.
- messages
- Durable conversation-message delivery.
- scratchpad
- Durable session, Swarm, and global notes for agent self-improvement.
- session_
files - Protected, session-bound storage shared by uploads and agent artifacts.
- sessions
- Chat catalog, durable forking, and Bot-scoped thread search middleware.
- subagents
- Durable asynchronous child-agent middleware.
- tasks
- Optional durable todo planning.
- tools
- Tool registry, dispatch, and minimal filesystem tools.
Structs§
- Active
Command Context - Mutable turn state exposed to a capability command that can run immediately.
- Compact
Context - State exposed immediately before or after context compaction.
- Frontend
Extensions - Read-only middleware UI surface consumed by a frontend shell.
- Message
Queue - Mutable scoped view of messages retained until their delivery boundary.
- Message
Route Context - Mutable state exposed to the middleware preparing conversation messages.
- Message
Submit Context - Mutable state exposed before a prepared next-turn message enters durable context.
- Middleware
Command Context - State available to a middleware-owned frontend command.
- Middleware
Command Output - Result of a middleware-owned frontend command.
- Middleware
Stack - A validated, declaration-ordered middleware pipeline.
- Model
Context - Mutable state exposed immediately before a model request.
- Model
Request Context - Request-only model input exposed after every durable
PreModelhook. - Permission
Request Context - Mutable policy boundary for a sandbox approval request.
- Post
Tool UseContext - Mutable model-visible result exposed after an executed tool call.
- PreTool
UseContext - Mutable policy boundary for one normalized model-requested tool call.
- Prompt
Section - One middleware-owned section of the assembled system prompt.
- Queued
Message Snapshot - Read-only startup snapshot containing only one middleware’s queued messages.
- Queued
Message View - Read-only queued message owned by the middleware receiving it.
- Runtime
Context - Durable runtime identity exposed while middleware starts a session.
- Session
Start Context - Mutable state shared by the declaration-ordered
SessionStarthooks. - Stop
Context - Mutable policy boundary immediately before normal turn completion.
- Tool
Exposure Context - Live capability state used to hide registered tools at a model boundary.
- Turn
EndContext - State exposed when the loop finishes or aborts a turn.
- Turn
Identity - Stable facts shared by hooks that run within one active turn.
Enums§
- Session
Start Source - Why
Middleware::session_startis running. - Submission
Result - Result of one middleware-owned submission.
Traits§
- Middleware
- A capability contribution to the single ordered agent pipeline.
Type Aliases§
- Frontend
Event Sink - Sends middleware-owned UI updates without depending on a concrete frontend.