Spaces:
Sleeping
Sleeping
Update definitions.py
Browse files- definitions.py +13 -11
definitions.py
CHANGED
@@ -301,16 +301,18 @@ class ChatSystem:
|
|
301 |
|
302 |
class AutonomousAgent:
|
303 |
"""Autonomous agent for the system."""
|
304 |
-
def __init__(self):
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
self.
|
312 |
-
self.
|
313 |
-
|
|
|
|
|
314 |
def initialize_tool_repository(self, tool_repository: object) -> None:
|
315 |
"""
|
316 |
Initializes the tool repository.
|
@@ -319,7 +321,7 @@ class AutonomousAgent:
|
|
319 |
tool_repository (object): The tool repository instance.
|
320 |
"""
|
321 |
self._tool_repository = tool_repository
|
322 |
-
|
323 |
def build_tool(self, tool_name, task):
|
324 |
"""Builds a tool."""
|
325 |
tool = self.tool_repository.get_tool(tool_name)
|
|
|
301 |
|
302 |
class AutonomousAgent:
|
303 |
"""Autonomous agent for the system."""
|
304 |
+
def __init__(self, app: object):
|
305 |
+
"""
|
306 |
+
Initializes the autonomous agent.
|
307 |
+
|
308 |
+
Args:
|
309 |
+
app (object): The application instance.
|
310 |
+
"""
|
311 |
+
self._chat_system = None
|
312 |
+
self._refinement_loop = None
|
313 |
+
self._tool_repository = None
|
314 |
+
self._app = app
|
315 |
+
|
316 |
def initialize_tool_repository(self, tool_repository: object) -> None:
|
317 |
"""
|
318 |
Initializes the tool repository.
|
|
|
321 |
tool_repository (object): The tool repository instance.
|
322 |
"""
|
323 |
self._tool_repository = tool_repository
|
324 |
+
|
325 |
def build_tool(self, tool_name, task):
|
326 |
"""Builds a tool."""
|
327 |
tool = self.tool_repository.get_tool(tool_name)
|