pub trait CodeModeSessionDelegate: Send + Sync {
// Required methods
fn invoke_tool<'a>(
&'a self,
invocation: CodeModeNestedToolCall,
cancellation_token: CancellationToken,
) -> ToolInvocationFuture<'a>;
fn notify<'a>(
&'a self,
call_id: String,
cell_id: CellId,
text: String,
cancellation_token: CancellationToken,
) -> NotificationFuture<'a>;
fn cell_closed(&self, cell_id: &CellId);
}Expand description
Host callbacks used by a code-mode session while cells are executing.
Required Methods§
fn invoke_tool<'a>( &'a self, invocation: CodeModeNestedToolCall, cancellation_token: CancellationToken, ) -> ToolInvocationFuture<'a>
fn notify<'a>( &'a self, call_id: String, cell_id: CellId, text: String, cancellation_token: CancellationToken, ) -> NotificationFuture<'a>
Sourcefn cell_closed(&self, cell_id: &CellId)
fn cell_closed(&self, cell_id: &CellId)
Releases delegate state associated with a cell after it reaches a terminal state.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".