Expand description
Trusted plugin lifecycle, hooks and registrar.
Structs§
- Agent
Registrar - Scoped registrar a plugin contributes through during activation; permissions are checked per call.
- Model
Failure - One failed model attempt as seen by
Hook::request_error. - Model
Request Policy - Mutable per-request model policy. Hooks may narrow or redirect it before the
request is frozen into
ModelRequestPrepared. - Mounted
Plugins - Result of an atomic mount: merged contributions plus the leases to release.
- Plugin
Catalog - Registered plugins keyed by id.
- Plugin
Descriptor - Redacted description of a registered plugin.
- Plugin
Manifest - Deployment-time declaration of a trusted plugin.
- Plugin
Mount Context - Identity a plugin is mounted under for one Session.
- Plugin
Reference Issue - One problem found by
PluginCatalog::validate_references. - Step
Context - Position of the loop when a step-level hook runs.
Enums§
- Hook
Decision - Result of a pre-tool hook.
- Plugin
Error - Plugin registration, validation or mount failure.
- Plugin
Permission - Contribution kinds a plugin may register.
- PreStep
Decision - Whether the loop may open the proposed step. A rejection closes the Run
without a model request and is recorded as a
step_rejectedextension event. - Request
Error Action - Recovery ownership for a failed model attempt.
Defaultkeeps the runtime’s retry policy;Retryforces one more attempt while attempts remain;Terminalstops retrying even for a retryable failure. - Turn
Stop Decision - Whether a turn that owes no tool result may close.
Steerappends the content as a logged user message and runs another step instead.
Traits§
- Agent
Plugin - Trusted deployment-time extension compiled into the host.
- Hook
- Interception points around the loop; every method has a no-op default.
- Plugin
Lease - Per-Session resource a plugin holds; released on unmount.
Functions§
- mount_
plugins - Mount a complete Session plugin set atomically. Any validation or activation failure tears down current and already-mounted plugins in reverse order.
- resolve_
plugin_ order - Topologically order the referenced plugins by their dependencies.
- validate_
plugin_ references - Side-effect-free validation shared by profile inspection and runtime mount.
Type Aliases§
- Tool
Execution Future - Boxed tool execution passed through
around_tool.