auto agent with new terminal tools

main
Kye 2 years ago
parent e0bd698dc2
commit 97f036d020

@ -22,7 +22,7 @@ from langchain.tools.file_management.write import WriteFileTool
ROOT_DIR = "./data/" ROOT_DIR = "./data/"
from langchain.tools import BaseTool, DuckDuckGoSearchRun from langchain.t1ools import BaseTool, DuckDuckGoSearchRun
from langchain.text_splitter import RecursiveCharacterTextSplitter from langchain.text_splitter import RecursiveCharacterTextSplitter
from pydantic import Field from pydantic import Field
@ -38,6 +38,7 @@ from langchain.tools.human.tool import HumanInputRun
from swarms.agents.workers.auto_agent import MultiModalVisualAgent from swarms.agents.workers.auto_agent import MultiModalVisualAgent
from swarms.tools.main import Terminal, CodeWriter, CodeEditor
class MultiModalVisualAgentTool(BaseTool): class MultiModalVisualAgentTool(BaseTool):
name = "multi_visual_agent" name = "multi_visual_agent"
@ -179,6 +180,11 @@ tools = [
ReadFileTool(root_dir="./data"), ReadFileTool(root_dir="./data"),
process_csv, process_csv,
query_website_tool, query_website_tool,
Terminal,
CodeWriter,
CodeEditor
# HumanInputRun(), # Activate if you want the permit asking for help from the human # HumanInputRun(), # Activate if you want the permit asking for help from the human
] ]

@ -806,7 +806,6 @@ import os
import re import re
from typing import Tuple from typing import Tuple
from .verify import verify
class Position: class Position:

Loading…
Cancel
Save