pub struct NexaraRuntime<C> { /* private fields */ }Implementations§
Source§impl<C> NexaraRuntime<C>
impl<C> NexaraRuntime<C>
pub fn new( config: NexaraRuntimeConfig, catalog: Arc<dyn ToolCatalogProvider>, executor: Arc<dyn HostToolExecutor<C>>, trust_resolver: Arc<dyn TrustPolicyResolver<C>>, ) -> Self
pub fn with_audit_sink(self, audit_sink: Arc<dyn AuditSink>) -> Self
pub fn with_broker(self, broker: ToolBroker) -> Self
pub fn with_usage_signals( self, usage_signals: Box<dyn ToolUsageSignalProvider>, max_adjustment: f32, ) -> Self
pub fn with_lifecycle_hooks( self, hooks: Arc<dyn RuntimeLifecycleHooks<C>>, ) -> Self
pub fn with_policy_contract(self, policy_contract: PolicyContract) -> Self
pub fn with_verified_policy_contract( self, policy_contract: PolicyContract, verifier: impl FnOnce(&PolicyContract) -> Result<(), NexaraError>, ) -> Result<Self, NexaraError>
pub fn registry(&self) -> ToolRegistry
pub fn list_tools( &self, prompt: Option<&str>, scopes: &[String], ) -> Vec<ToolDescriptor>
pub async fn call_tool( &self, request: ToolCallRequest, context: C, ) -> Result<ToolCallResult, NexaraError>
Auto Trait Implementations§
impl<C> Freeze for NexaraRuntime<C>
impl<C> !RefUnwindSafe for NexaraRuntime<C>
impl<C> Send for NexaraRuntime<C>
impl<C> Sync for NexaraRuntime<C>
impl<C> Unpin for NexaraRuntime<C>
impl<C> UnsafeUnpin for NexaraRuntime<C>
impl<C> !UnwindSafe for NexaraRuntime<C>
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