pub struct RuntimeExecutionContext<'run> { /* private fields */ }Implementations§
Source§impl<'run> RuntimeExecutionContext<'run>
impl<'run> RuntimeExecutionContext<'run>
pub fn session_id(&self) -> &str
pub fn attachment_store(&self) -> Arc<dyn AttachmentStore> ⓘ
pub async fn put_lashlang_module_artifact( &self, artifact: &ModuleArtifact, ) -> Result<(), String>
pub fn chronological_projection(&self) -> Arc<ChronologicalProjection> ⓘ
pub fn protocol_extension<T: 'static>(&self) -> Option<&T>
pub fn turn_context(&self) -> &TurnContext
pub fn parent_invocation(&self) -> Option<&RuntimeInvocation>
pub fn lashlang_execution_sink(&self) -> Option<Arc<dyn TraceSink>>
pub fn lashlang_execution_context(&self) -> &TraceContext
pub fn callable_tool_manifest(&self, name: &str) -> Option<ToolManifest>
pub fn callable_tool_manifest_by_id(&self, id: &ToolId) -> Option<ToolManifest>
pub fn resolve_lashlang_host_operation( &self, receiver: &ResourceHandle, operation: &str, ) -> Result<String, String>
pub async fn prepare_lashlang_process_start( &self, start: ProcessStart, ) -> Result<(ProcessRegistration, Option<String>), String>
pub fn lashlang_surface(&self) -> &LashlangSurface
pub fn lashlang_abilities(&self) -> LashlangAbilities
pub fn lashlang_language_features(&self) -> LashlangLanguageFeatures
pub fn link_lashlang_module( &self, program: Program, ) -> Result<LinkedModule, String>
pub async fn perform_lashlang_trigger_operation( &self, operation: &str, payload: Value, ) -> Result<Value, String>
pub fn tool_argument_projection_policy( &self, name: &str, ) -> ToolArgumentProjectionPolicy
pub async fn start_lashlang_process( &self, registration: ProcessRegistration, label: Option<String>, ) -> ToolInvocationReply
pub async fn sleep_lashlang( &self, scope: &str, sequence: u64, duration_ms: u64, ) -> Result<(), RuntimeEffectControllerError>
Source§impl RuntimeExecutionContext<'_>
impl RuntimeExecutionContext<'_>
pub async fn call_tool( &self, call_id: String, name: String, args: Value, index: usize, ) -> ToolInvocationReply
pub async fn call_tool_with_lashlang_execution_call_site( &self, call_id: String, name: String, args: Value, index: usize, call_site: ToolLashlangExecutionCallSite, ) -> ToolInvocationReply
pub async fn call_tool_batch( &self, calls: Vec<ToolInvocation>, ) -> Vec<ToolInvocationReply>
pub async fn start_tool_call( &self, call_id: String, name: String, args: Value, ) -> ToolInvocationReply
pub async fn await_tool_handle( &self, call_id: String, handle: Value, ) -> ToolInvocationReply
pub async fn cancel_tool_handle( &self, call_id: String, handle: Value, ) -> ToolInvocationReply
pub async fn signal_tool_handle( &self, call_id: String, handle: Value, payload: Value, ) -> ToolInvocationReply
Trait Implementations§
Source§impl<'run> Clone for RuntimeExecutionContext<'run>
impl<'run> Clone for RuntimeExecutionContext<'run>
Source§fn clone(&self) -> RuntimeExecutionContext<'run>
fn clone(&self) -> RuntimeExecutionContext<'run>
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<'run> !RefUnwindSafe for RuntimeExecutionContext<'run>
impl<'run> !UnwindSafe for RuntimeExecutionContext<'run>
impl<'run> Freeze for RuntimeExecutionContext<'run>
impl<'run> Send for RuntimeExecutionContext<'run>
impl<'run> Sync for RuntimeExecutionContext<'run>
impl<'run> Unpin for RuntimeExecutionContext<'run>
impl<'run> UnsafeUnpin for RuntimeExecutionContext<'run>
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