Skip to main content

build_search_grounding_instruction

Function build_search_grounding_instruction 

Source
pub fn build_search_grounding_instruction(
    enabled_tool_categories: &EnabledToolCategories,
) -> String
Expand description

Only called when AZURE_AI_SEARCH_TOOL_NAME itself is in the request’s tool list. Each row in TOOL_MENTIONS is appended only when its category is enabled, so the instruction never points the model at a tool this configuration doesn’t actually offer.