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:
parent
efdb769f9b
commit
da61a28839
1 changed files with 4 additions and 4 deletions
|
@ -45,15 +45,15 @@ impl ToolWorkingSet {
|
||||||
tools
|
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 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.next_tool_id.0 += 1;
|
||||||
state
|
state
|
||||||
.context_server_tools_by_id
|
.context_server_tools_by_id
|
||||||
.insert(command_id, command.clone());
|
.insert(tool_id, tool.clone());
|
||||||
state.tools_changed();
|
state.tools_changed();
|
||||||
command_id
|
tool_id
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn remove(&self, command_ids_to_remove: &[ToolId]) {
|
pub fn remove(&self, command_ids_to_remove: &[ToolId]) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue