From 6ad29fb23318f728ee8891643d3090ad699e7c55 Mon Sep 17 00:00:00 2001 From: Kye Date: Fri, 30 Jun 2023 08:58:57 -0400 Subject: [PATCH] init --- README.md | 26 -------------------------- swarms/__init__.py | 2 ++ 2 files changed, 2 insertions(+), 26 deletions(-) create mode 100644 swarms/__init__.py diff --git a/README.md b/README.md index e0edf6d2..ed79455d 100644 --- a/README.md +++ b/README.md @@ -41,35 +41,9 @@ There are 2 methods, one is very simple to test it out and then there is another ### Method 1 Simple example `python3 example.py` -### Method 2 -The primary agent in this repository is the `AutoAgent` from `./swarms/agents/workers/auto_agent.py`. -This `AutoAgent` is used to create the `MultiModalVisualAgent`, an autonomous agent that can process tasks in a multi-modal environment, like dealing with both text and visual data. -To use this agent, you need to import the agent and instantiate it. Here is a brief guide: -```python -from swarms.agents.auto_agent import MultiModalVisualAgent - -# Initialize the agent -multimodal_agent = MultiModalVisualAgent() -``` - -### Working with MultiModalVisualAgentTool -The `MultiModalVisualAgentTool` class is a tool wrapper around the `MultiModalVisualAgent`. It simplifies working with the agent by encapsulating agent-related logic within its methods. Here's a brief guide on how to use it: - -```python -from swarms.agents.auto_agent import MultiModalVisualAgent, MultiModalVisualAgentTool - -# Initialize the agent -multimodal_agent = MultiModalVisualAgent() - -# Initialize the tool with the agent -multimodal_agent_tool = MultiModalVisualAgentTool(multimodal_agent) - -# Now, you can use the agent tool to perform tasks. The run method is one of them. -result = multimodal_agent_tool.run('Your text here') -``` ## Note - The `AutoAgent` makes use of several helper tools and context managers for tasks such as processing CSV files, browsing web pages, and querying web pages. For the best use of this agent, understanding these tools is crucial. diff --git a/swarms/__init__.py b/swarms/__init__.py new file mode 100644 index 00000000..6b1903f3 --- /dev/null +++ b/swarms/__init__.py @@ -0,0 +1,2 @@ +from swarms.agents.swarms import WorkerNode, BossNode +