Skip to main content

strict_sampling

Function strict_sampling 

Source
pub fn strict_sampling(
    tool: &ToolDeclaration,
    supports_strict: bool,
    check: Option<KeywordCheck>,
) -> Result<bool, String>
Expand description

Whether to send tool with strict JSON-schema sampling: it asks for it, the provider supports it and the schema can be made strict. Err when the tool requires strict sampling that cannot be had.