Skip to main content

ProtocolDriverHandle

Trait ProtocolDriverHandle 

Source
pub trait ProtocolDriverHandle<M = UnitModeProtocol>: Send + Sync
where M: ModeProtocol,
{ // Required methods fn prepare_mode_iteration( &self, ctx: DriverContextView<'_, M>, ) -> Vec<DriverAction<M>>; fn handle_llm_success( &self, ctx: DriverContextView<'_, M>, waiting: WaitingLlmState<M>, llm_response: LlmResponse, text_streamed: bool, ) -> Vec<DriverAction<M>>; fn handle_tool_results( &self, ctx: DriverContextView<'_, M>, completed: Vec<CompletedToolCall>, ) -> Vec<DriverAction<M>>; fn handle_exec_result( &self, ctx: DriverContextView<'_, M>, waiting: WaitingExecState<M>, result: Result<ExecResponse, String>, ) -> Vec<DriverAction<M>>; }

Required Methods§

Source

fn prepare_mode_iteration( &self, ctx: DriverContextView<'_, M>, ) -> Vec<DriverAction<M>>

Source

fn handle_llm_success( &self, ctx: DriverContextView<'_, M>, waiting: WaitingLlmState<M>, llm_response: LlmResponse, text_streamed: bool, ) -> Vec<DriverAction<M>>

Source

fn handle_tool_results( &self, ctx: DriverContextView<'_, M>, completed: Vec<CompletedToolCall>, ) -> Vec<DriverAction<M>>

Source

fn handle_exec_result( &self, ctx: DriverContextView<'_, M>, waiting: WaitingExecState<M>, result: Result<ExecResponse, String>, ) -> Vec<DriverAction<M>>

Implementors§