Skip to main content

read_tool_call

Function read_tool_call 

Source
pub fn read_tool_call(answer: &str, tools: &[Tool]) -> Option<ToolCall>
Expand description

Reads what a model answered. Anything but a known tool, however it is written, is no choice at all, so a model cannot ask for what the app did not offer.