pub struct ModeExecutionContext { /* private fields */ }Implementations§
Source§impl ModeExecutionContext
impl ModeExecutionContext
pub fn session_id(&self) -> &str
pub fn execution_mode(&self) -> &ExecutionMode
pub fn attachment_store(&self) -> Arc<dyn AttachmentStore> ⓘ
pub fn chronological_projection(&self) -> Arc<ChronologicalProjection> ⓘ
pub fn mode_extension<T: 'static>(&self) -> Option<&T>
pub fn turn_context(&self) -> &TurnContext
Source§impl ModeExecutionContext
impl ModeExecutionContext
pub async fn call_tool( &self, call_id: String, name: String, args: Value, index: usize, ) -> ModeToolReply
pub async fn call_tool_batch( &self, calls: Vec<ModeToolBatchItem>, ) -> Vec<ModeToolReply>
pub async fn start_tool_call( &self, call_id: String, name: String, args: Value, ) -> ModeToolReply
pub async fn await_tool_handle( &self, _call_id: String, handle: Value, ) -> ModeToolReply
pub async fn cancel_tool_handle( &self, _call_id: String, handle: Value, ) -> ModeToolReply
Trait Implementations§
Source§impl Clone for ModeExecutionContext
impl Clone for ModeExecutionContext
Source§fn clone(&self) -> ModeExecutionContext
fn clone(&self) -> ModeExecutionContext
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 moreAuto Trait Implementations§
impl Freeze for ModeExecutionContext
impl !RefUnwindSafe for ModeExecutionContext
impl Send for ModeExecutionContext
impl Sync for ModeExecutionContext
impl Unpin for ModeExecutionContext
impl UnsafeUnpin for ModeExecutionContext
impl !UnwindSafe for ModeExecutionContext
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