flow no tools

pull/128/head
Kye 1 year ago
parent 42e8130e17
commit 03867566eb

@ -1,3 +1,8 @@
import sys
log_file = open("errors.txt", "w")
sys.stderr = log_file
# LLMs
from swarms.models.anthropic import Anthropic
from swarms.models.petals import Petals
@ -18,12 +23,6 @@ from swarms.models.layoutlm_document_qa import LayoutLMDocumentQA
from swarms.models.gpt4v import GPT4Vision
from swarms.models.dalle3 import Dalle3
from swarms.models.distilled_whisperx import DistilWhisperModel
# from swarms.models.fuyu import Fuyu # Not working, wait until they update
import sys
log_file = open("errors.txt", "w")
sys.stderr = log_file
__all__ = [
"Anthropic",
@ -44,5 +43,4 @@ __all__ = [
"WizardLLMStoryTeller",
"GPT4Vision",
"Dalle3",
# "Fuyu",
]

@ -124,7 +124,7 @@ class Flow:
dashboard: bool = False,
agent_name: str = "Flow agent",
system_prompt: str = FLOW_SYSTEM_PROMPT,
# tools: List[BaseTool] = None,
tools: List[Any] = None,
dynamic_temperature: bool = False,
saved_state_path: Optional[str] = "flow_state.json",
autosave: bool = False,
@ -150,7 +150,7 @@ class Flow:
# The max_loops will be set dynamically if the dynamic_loop
if self.dynamic_loops:
self.max_loops = "auto"
# self.tools = tools or []
self.tools = tools or []
self.system_prompt = system_prompt
self.agent_name = agent_name
self.saved_state_path = saved_state_path

Loading…
Cancel
Save