refactor: Refactored use_tools field to enabled_tools field to make the use of the field more clear

This commit is contained in:
2025-11-04 12:37:14 -07:00
parent 7b08d1ef96
commit 865ef5827b
8 changed files with 52 additions and 50 deletions
+2 -2
View File
@@ -418,7 +418,7 @@ impl RoleLike for Agent {
self.config.top_p
}
fn use_tools(&self) -> Option<String> {
fn enabled_tools(&self) -> Option<String> {
self.config.global_tools.clone().join(",").into()
}
@@ -439,7 +439,7 @@ impl RoleLike for Agent {
self.config.top_p = value;
}
fn set_use_tools(&mut self, value: Option<String>) {
fn set_enabled_tools(&mut self, value: Option<String>) {
match value {
Some(tools) => {
let tools = tools