pub struct PluginRegistry { /* private fields */ }Implementations§
Source§impl PluginRegistry
impl PluginRegistry
pub fn statuses(&self) -> Vec<PluginStatus>
pub async fn ping(&self, name: &str) -> Result<(), String>
Sourcepub fn producer_recovery_states(&self) -> Vec<PluginRecoveryState>
pub fn producer_recovery_states(&self) -> Vec<PluginRecoveryState>
Snapshot of configured or declared producer plugins, including unavailable ones. Failed/disabled external work is unknown, never proof of completion.
pub async fn shutdown(&self)
Trait Implementations§
Source§impl Clone for PluginRegistry
impl Clone for PluginRegistry
Source§fn clone(&self) -> PluginRegistry
fn clone(&self) -> PluginRegistry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PluginRegistry
impl Debug for PluginRegistry
Source§impl ToolProvider for PluginRegistry
impl ToolProvider for PluginRegistry
Source§fn provider_id(&self) -> &'static str
fn provider_id(&self) -> &'static str
Stable engine-facing identity used for system-prompt provenance labels.
fn tools_for_session( &self, _ctx: &SessionToolContext, ) -> Result<Vec<ToolSpec>, ToolError>
fn get_permission_name(_tool_name: &str) -> Result<&'static str, ToolError>
fn get_permission_resource( &self, tool_name: &str, arguments: &Value, ) -> Result<(&'static str, Option<String>), ToolError>
fn get_display_argument( &self, name: &str, arguments: &Value, ) -> Result<String, ToolError>
fn prepare<'life0, 'async_trait>(
&'life0 self,
ctx: ToolPreparationContext,
call: ToolCall,
) -> Pin<Box<dyn Future<Output = Result<PreparedTool, ToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn prompt_sections(
&self,
_ctx: &SessionToolContext,
) -> Result<Vec<PromptSection>, ToolError>
fn prompt_sections( &self, _ctx: &SessionToolContext, ) -> Result<Vec<PromptSection>, ToolError>
Sections resolved once at run admission and frozen into the agent snapshot.
Source§fn permission_for_unlisted_tool(
&self,
_tool_name: &str,
) -> Result<Option<&'static str>, ToolError>
fn permission_for_unlisted_tool( &self, _tool_name: &str, ) -> Result<Option<&'static str>, ToolError>
Claims a currently undiscovered dynamic tool, allowing preparation to make it available.
fn presentation(&self, call: &ToolCall) -> ToolCallPresentation
Source§fn prepare_parallel<'life0, 'async_trait>(
&'life0 self,
ctx: ToolPreparationContext,
calls: Vec<ToolCall>,
) -> Pin<Box<dyn Future<Output = Vec<Result<PreparedTool, ToolError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn prepare_parallel<'life0, 'async_trait>(
&'life0 self,
ctx: ToolPreparationContext,
calls: Vec<ToolCall>,
) -> Pin<Box<dyn Future<Output = Vec<Result<PreparedTool, ToolError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Prepare one turn’s parallel call batch. Providers whose calls may target
the same mutable resource can chain preparation against successive states.
Auto Trait Implementations§
impl Freeze for PluginRegistry
impl RefUnwindSafe for PluginRegistry
impl Send for PluginRegistry
impl Sync for PluginRegistry
impl Unpin for PluginRegistry
impl UnsafeUnpin for PluginRegistry
impl UnwindSafe for PluginRegistry
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