refactor: Refactored use_tools field to enabled_tools field to make the use of the field more clear
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user