Skip to main content

resolve_transcript_tools

Function resolve_transcript_tools 

Source
pub fn resolve_transcript_tools(
    messages: &[Message],
    supports_tool_additions: bool,
) -> (Vec<ToolDeclaration>, bool)
Expand description

Tools for the top-level request field, and whether later system messages keep their own additions in place. Anchoring needs API support and a transcript that only ever adds tools. Otherwise the request lists the current tools.