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 19:11:40 +03:00 committed by GitHub
parent 79f96a5afe
commit cde47e60cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 70 additions and 1 deletions

View file

@ -126,6 +126,7 @@ mod tests {
}
},
"required": ["location"],
"additionalProperties": false
})
);
}