pub trait CodeModePort: Send + Sync {
// Required method
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
request: CodeModeExecuteRequest,
context: &'life1 ExecutionContext,
) -> Pin<Box<dyn Future<Output = Result<Value, PortError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Port to the Code Mode engine that runs sandboxed JavaScript against the tool catalog.
Required Methods§
Sourcefn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
request: CodeModeExecuteRequest,
context: &'life1 ExecutionContext,
) -> Pin<Box<dyn Future<Output = Result<Value, PortError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
request: CodeModeExecuteRequest,
context: &'life1 ExecutionContext,
) -> Pin<Box<dyn Future<Output = Result<Value, PortError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Executes a Code Mode request.