"""Remove a single tool from the agent's tools list.
"""Remove a single tool from the agents tools list.
Args:
Args:
tool(Callable):Thetoolfunctiontoremove
tool(Callable):Thetoolfunctiontoremove
@ -1967,7 +1967,7 @@ class Agent:
returnself.tools.remove(tool)
returnself.tools.remove(tool)
defremove_tools(self,tools:List[Callable]):
defremove_tools(self,tools:List[Callable]):
"""Remove multiple tools from the agent's tools list.
"""Remove multiple tools from the agents tools list.
Args:
Args:
tools(List[Callable]):Listoftoolfunctionstoremove
tools(List[Callable]):Listoftoolfunctionstoremove
@ -2441,9 +2441,9 @@ class Agent:
**kwargs,
**kwargs,
)->Any:
)->Any:
"""
"""
Executestheagent's run method on a specified device, with optional scheduling.
Executestheagents run method on a specified device, with optional scheduling.
Thismethodattemptstoexecutetheagent's run method on a specified device, either CPU or GPU. It logs the device selection and the number of cores or GPU ID used. If the device is set to CPU, it can use all available cores or a specific core specified by `device_id`. If the device is set to GPU, it uses the GPU specified by `device_id`.