pub trait ToolCallRewriter: Send + Sync {
// Required method
fn maybe_reformat<'life0, 'life1, 'async_trait>(
&'life0 self,
response: LlmResponse,
tools: &'life1 [ToolDefinition],
strict: bool,
) -> Pin<Box<dyn Future<Output = Result<LlmResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Trait for FunctionGemma-powered tool call reformatting.
Required Methods§
Sourcefn maybe_reformat<'life0, 'life1, 'async_trait>(
&'life0 self,
response: LlmResponse,
tools: &'life1 [ToolDefinition],
strict: bool,
) -> Pin<Box<dyn Future<Output = Result<LlmResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn maybe_reformat<'life0, 'life1, 'async_trait>(
&'life0 self,
response: LlmResponse,
tools: &'life1 [ToolDefinition],
strict: bool,
) -> Pin<Box<dyn Future<Output = Result<LlmResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Extract structured tool calls from a text-only response.