pub struct EngineLoop { /* private fields */ }Implementations§
Source§impl EngineLoop
impl EngineLoop
pub fn new( storage: Arc<Storage>, event_bus: EventBus, providers: ProviderRegistry, plugins: PluginRegistry, agents: AgentRegistry, permissions: PermissionManager, tools: ToolRegistry, cancellations: CancellationRegistry, host_runtime_context: HostRuntimeContext, ) -> Self
pub async fn set_spawn_agent_hook(&self, hook: Arc<dyn SpawnAgentHook>)
pub async fn set_tool_policy_hook(&self, hook: Arc<dyn ToolPolicyHook>)
pub async fn set_session_allowed_tools( &self, session_id: &str, allowed_tools: Vec<String>, )
pub async fn clear_session_allowed_tools(&self, session_id: &str)
pub async fn grant_workspace_override_for_session( &self, session_id: &str, ttl_seconds: u64, ) -> u64
pub async fn run_prompt_async( &self, session_id: String, req: SendMessageRequest, ) -> Result<()>
pub async fn run_prompt_async_with_context( &self, session_id: String, req: SendMessageRequest, correlation_id: Option<String>, ) -> Result<()>
pub async fn run_oneshot(&self, prompt: String) -> Result<String>
pub async fn run_oneshot_for_provider( &self, prompt: String, provider_id: Option<&str>, ) -> Result<String>
Trait Implementations§
Source§impl Clone for EngineLoop
impl Clone for EngineLoop
Source§fn clone(&self) -> EngineLoop
fn clone(&self) -> EngineLoop
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EngineLoop
impl !RefUnwindSafe for EngineLoop
impl Send for EngineLoop
impl Sync for EngineLoop
impl Unpin for EngineLoop
impl UnsafeUnpin for EngineLoop
impl !UnwindSafe for EngineLoop
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