pub struct LoopActionHandlersPlugin;Expand description
Internal plugin that registers all loop action handlers and their accumulator state keys. Plugin that registers action handlers and their accumulator state keys.
Installed automatically by inject_default_plugins for the main runtime.
External crates that build sub-runtimes (e.g. generative-ui) should also
install this plugin alongside super::LoopStatePlugin.
Trait Implementations§
Source§impl Plugin for LoopActionHandlersPlugin
impl Plugin for LoopActionHandlersPlugin
fn descriptor(&self) -> PluginDescriptor
Source§fn register(&self, r: &mut PluginRegistrar) -> Result<(), StateError>
fn register(&self, r: &mut PluginRegistrar) -> Result<(), StateError>
Declare capabilities: state keys, hooks, action handlers, effect handlers, permission checkers.
Called once per resolve to build the ExecutionEnv.
Source§fn bind_runtime_context(
&self,
_store: &StateStore,
_owner_inbox: Option<&InboxSender>,
)
fn bind_runtime_context( &self, _store: &StateStore, _owner_inbox: Option<&InboxSender>, )
Bind per-run runtime context to the plugin instance. Read more
Source§fn config_schemas(&self) -> Vec<ConfigSchema>
fn config_schemas(&self) -> Vec<ConfigSchema>
Declare config section schemas for eager validation during resolve. Read more
Source§fn on_activate(
&self,
_agent_spec: &AgentSpec,
_patch: &mut MutationBatch,
) -> Result<(), StateError>
fn on_activate( &self, _agent_spec: &AgentSpec, _patch: &mut MutationBatch, ) -> Result<(), StateError>
Agent activated: read spec config, write initial state.
Called when this plugin becomes active for a specific agent.
Source§fn on_deactivate(&self, _patch: &mut MutationBatch) -> Result<(), StateError>
fn on_deactivate(&self, _patch: &mut MutationBatch) -> Result<(), StateError>
Agent deactivated: clean up agent-scoped state.
Called when switching away from an agent that uses this plugin.
Auto Trait Implementations§
impl Freeze for LoopActionHandlersPlugin
impl RefUnwindSafe for LoopActionHandlersPlugin
impl Send for LoopActionHandlersPlugin
impl Sync for LoopActionHandlersPlugin
impl Unpin for LoopActionHandlersPlugin
impl UnsafeUnpin for LoopActionHandlersPlugin
impl UnwindSafe for LoopActionHandlersPlugin
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more