assistant_tools: Disallow extra tool parameters by default (#32081)

This prevents models from hallucinating tool parameters.


Release Notes:

- Prevent models from hallucinating tool parameters
This commit is contained in:
Oleksiy Syvokon
2025-06-04 16:11:40 +00:00
committed by GitHub
parent 79f96a5afe
commit cde47e60cd
2 changed files with 70 additions and 1 deletions
@@ -126,6 +126,7 @@ mod tests {
}
},
"required": ["location"],
"additionalProperties": false
})
);
}