assistant2: Use snake_case for tool names (#27903)

The [Gemini
docs](https://ai.google.dev/gemini-api/docs/function-calling?example=weather#function_declarations)
state that function names should be in `snake_case` or `camelCase`.

Release Notes:

- N/A
This commit is contained in:
Bennet Bo Fenner 2025-04-02 12:17:58 +02:00 committed by GitHub
parent c1d6dfd832
commit 9b7b4a9d2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 14 additions and 14 deletions

View file

@ -44,7 +44,7 @@ pub struct ReadFileTool;
impl Tool for ReadFileTool {
fn name(&self) -> String {
"read-file".into()
"read_file".into()
}
fn needs_confirmation(&self) -> bool {