assistant_tool: Fix inaccurate parameter name (#26473)

This PR fixes an inaccurate parameter name in the
`ToolWorkingSet::insert` method.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-03-11 15:15:03 -04:00 committed by GitHub
parent efdb769f9b
commit da61a28839
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -45,15 +45,15 @@ impl ToolWorkingSet {
tools
}
pub fn insert(&self, command: Arc<dyn Tool>) -> ToolId {
pub fn insert(&self, tool: Arc<dyn Tool>) -> ToolId {
let mut state = self.state.lock();
let command_id = state.next_tool_id;
let tool_id = state.next_tool_id;
state.next_tool_id.0 += 1;
state
.context_server_tools_by_id
.insert(command_id, command.clone());
.insert(tool_id, tool.clone());
state.tools_changed();
command_id
tool_id
}
pub fn remove(&self, command_ids_to_remove: &[ToolId]) {