From 88774b8609aca89c5fec0c2e5d414a3c51331e8f Mon Sep 17 00:00:00 2001 From: Kye Date: Fri, 3 Nov 2023 15:54:11 -0400 Subject: [PATCH] flow Former-commit-id: 1dc67bee9d38d1d37b69da94ff273493d1184066 --- README.md | 5 ++--- swarms/structs/flow.py | 20 +++----------------- 2 files changed, 5 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index bea090d3..68d7ba05 100644 --- a/README.md +++ b/README.md @@ -118,14 +118,13 @@ agent.run("Create a video of a swarm of fish") --- ## Documentation - - For documentation, go here, [swarms.apac.ai](https://swarms.apac.ai) ## Contribute -We're always looking for contributors to help us improve and expand this project. If you're interested, please check out our [Contributing Guidelines](CONTRIBUTING.md). +We're always looking for contributors to help us improve and expand this project. If you're interested, please check out our [Contributing Guidelines](CONTRIBUTING.md) and our [contributing board](https://github.com/users/kyegomez/projects/1) -# License +# License MIT diff --git a/swarms/structs/flow.py b/swarms/structs/flow.py index fcb9217a..c7989603 100644 --- a/swarms/structs/flow.py +++ b/swarms/structs/flow.py @@ -13,7 +13,7 @@ from typing import Any, Callable, Dict, List, Optional, Tuple, Generator from termcolor import colored import inspect import random -from swarms.tools.tool import BaseTool +# from swarms.tools.tool import BaseTool # Constants @@ -103,7 +103,7 @@ class Flow: retry_interval: int = 1, interactive: bool = False, dashboard: bool = False, - tools: List[BaseTool] = None, + # tools: List[BaseTool] = None, dynamic_temperature: bool = False, **kwargs: Any, ): @@ -121,21 +121,7 @@ class Flow: self.interactive = interactive self.dashboard = dashboard self.dynamic_temperature = dynamic_temperature - self.tools = tools or [] - - def load_tools(self, task: str, **kwargs): - for i in range(self.max_loops): - for tool in self.tools: - tool_prompt = f"\n\nTool: {tool.__name__}\n{tool.__doc__}" - reponse = self.llm( - f""" - {FLOW_SYSTEM_PROMPT} - {tool_prompt} - - History: {reponse} - - """, **kwargs - ) + # self.tools = tools def provide_feedback(self, feedback: str) -> None: """Allow users to provide feedback on the responses."""