pub trait RouterHost: Send {
// Required methods
fn tool_definitions(&self) -> Vec<ToolDefinition>;
fn dispatch(
&mut self,
name: &str,
arguments: &str,
) -> Option<HostToolResult>;
}Expand description
Narrow interface the router needs from the host environment.
Implemented by codetether-agent with RlmRepl and the
dispatch_tool_call function from src/rlm/tools.rs.
Required Methods§
Sourcefn tool_definitions(&self) -> Vec<ToolDefinition>
fn tool_definitions(&self) -> Vec<ToolDefinition>
Return the rlm_head/tail/grep/… tool definitions.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".