Alessandro commited on
Commit
8ff154c
·
1 Parent(s): b97d0f7

FAQs FIX!

Browse files

- Faqs were replaced by quickstart 🤔
- Fixed all broken links

README.md CHANGED
@@ -91,7 +91,7 @@ A detailed setup guide for Windows, macOS and Linux with a video can be found in
91
  The documentation dives deep into the framework and its features. It is a good place to start if you are new to Agent Zero. Click [here](docs/README.md) to see the Documentation.
92
 
93
  ## Coming up
94
- - **Preinstalled bundles**
95
  - **Knowledge tool open-sourcing and web scraping tool**
96
  - **User interaction refinements**
97
  - **In-context switchable LLMs**
@@ -99,17 +99,17 @@ The documentation dives deep into the framework and its features. It is a good p
99
  ### Changelog [since version 0.7]
100
 
101
  #### v0.7.1
102
- - **Bug Fixes**
103
  - **Persistent Chats** - Serialized to /tmp/chats and automatically loaded in run_ui.py on startup
104
- - **Preinstalled binaries and bundler scripts**
105
  - **Documentation stack merged into the repository**
 
106
 
107
- #### New in version 0.7
108
- > - UI Revamp
109
- > - Auto Memory
110
- > - Instruments
111
- > - Extensions Framework
112
- > - Reflection
 
113
 
114
  > [!NOTE]
115
  > **Changes to launch files since v0.6:**
 
91
  The documentation dives deep into the framework and its features. It is a good place to start if you are new to Agent Zero. Click [here](docs/README.md) to see the Documentation.
92
 
93
  ## Coming up
94
+ - **Preinstalled binaries and bundler scripts**
95
  - **Knowledge tool open-sourcing and web scraping tool**
96
  - **User interaction refinements**
97
  - **In-context switchable LLMs**
 
99
  ### Changelog [since version 0.7]
100
 
101
  #### v0.7.1
 
102
  - **Persistent Chats** - Serialized to /tmp/chats and automatically loaded in run_ui.py on startup
 
103
  - **Documentation stack merged into the repository**
104
+ - **Bug Fixes**
105
 
106
+ #### v0.7
107
+ - **Automatic memory**
108
+ - **UI improvements**
109
+ - **Instruments**
110
+ - **Extensions framework**
111
+ - **Reflection prompts**
112
+ - **Bugfixes**
113
 
114
  > [!NOTE]
115
  > **Changes to launch files since v0.6:**
docs/README.md CHANGED
@@ -2,20 +2,20 @@
2
  # Agent Zero Documentation
3
  To begin with Agent Zero, follow the links below for detailed guides on various topics:
4
 
5
- - **[Installation](installation.md):** Set up (or [update](installation.md#-how-to-update-agent-zero)) Agent Zero on your system.
6
  - **[Quick Start](quickstart.md):** Begin using Agent Zero with practical examples.
7
  - **[Usage Guide](usage.md):** Explore advanced features and capabilities.
8
  - **[Architecture Overview](architecture.md):** Understand the internal workings of the framework.
9
  - **[Contributing](contribution.md):** Learn how to contribute to the Agent Zero project.
10
  - **[Troubleshooting and FAQ](troubleshooting.md):** Find answers to common issues and questions.
11
-
12
  ### Your experience with Agent Zero starts now!
13
 
14
  - **Download Agent Zero:** Download the latest release from the [GitHub releases page](https://github.com/frdel/agent-zero/releases).
15
  - **Join the Community:** Join the Agent Zero [Skool](https://www.skool.com/agent-zero) or [Discord](https://discord.gg/Z2tun2N3) community to discuss ideas, ask questions, and collaborate with other contributors.
16
  - **Share your Work:** Share your Agent Zero creations, workflows and discoverings on our [Show and Tell](https://github.com/frdel/agent-zero/discussions/categories/show-and-tell) area on GitHub.
17
- - **Report Issues:** Use the GitHub issue tracker to report bugs or suggest new features.
18
-
19
  ## Table of Contents
20
 
21
  - [Welcome to the Agent Zero Documentation](#agent-zero-documentation)
@@ -34,8 +34,8 @@ To begin with Agent Zero, follow the links below for detailed guides on various
34
  - [5. Configure Agent Zero](installation.md#5-configure-agent-zero)
35
  - [6. Run Agent Zero](installation.md#6-run-agent-zero)
36
  - [Choosing Your LLMs](installation.md#choosing-your-llms)
37
- - [Installing and Using Ollama](installation.md#installing-and-using-ollama)
38
- - [How to update Agent Zero](installation.md#-how-to-update-agent-zero)
39
  - [How to create executable files for Agent Zero](installation.md#how-to-create-executable-files-for-agent-zero-in-windows-macos-and-linux)
40
  - [Conclusion](installation.md#conclusion)
41
  - [Quick Start](quickstart.md)
@@ -68,42 +68,15 @@ To begin with Agent Zero, follow the links below for detailed guides on various
68
  - [Customization](architecture.md#customization)
69
  - [Custom Prompts](architecture.md#custom-prompts)
70
  - [Changing the System Prompt Folder](architecture.md#changing-the-system-prompt-folder)
71
- - [Editing Prompts](architecture.md#editing-prompts)
72
  - [AgentConfig](architecture.md#agentconfig)
73
  - [Adding Tools](architecture.md#adding-tools)
74
  - [Adding Instruments](architecture.md#adding-instruments)
75
  - [Adding Extensions](architecture.md#adding-extensions)
76
- - [Important Considerations](architecture.md#important-considerations)
77
  - [Contributing to Agent Zero](contribution.md)
78
  - [Getting Started](contribution.md#getting-started)
79
  - [Making Changes](contribution.md#making-changes)
80
  - [Submitting a Pull Request](contribution.md#submitting-a-pull-request)
81
  - [Documentation Stack](contribution.md#documentation-stack)
82
- - [Troubleshooting and FAQ](troubleshooting.md)
83
  - [Frequently Asked Questions](troubleshooting.md#frequently-asked-questions)
84
- - [Troubleshooting](troubleshooting.md#troubleshooting)
85
- - [Installation](troubleshooting.md#installation)
86
- - [Usage](troubleshooting.md#usage)
87
-
88
- ## Changelog [since version 0.7]
89
-
90
- ### v0.7.1
91
- - **Bug Fixes**
92
- - **Persistent Chats** - Serialized to /tmp/chats and automatically loaded in run_ui.py on startup
93
- - **Preinstalled binaries and bundler scripts**
94
- - **Documentation stack merged into the repository**
95
-
96
- ### v0.7
97
- - **Auto Memory System**
98
- - **UI Revamp**
99
- - The chat interface is now fully responsive, has a progress bar and supports both light and dark themes.
100
- - **Instruments**: Users can create custom tools (instruments) using markdown files. These instruments execute commands within the Docker container and can be used to perform various tasks, such as downloading YouTube videos or executing scripts.
101
- - **Extensions Framework**
102
- - A new extensions framework has been introduced to keep the main agent.py file clean and maintainable. This allows for better organization of code with various subfolders for different functionalities. Files within python/extensions folders are executed in alphabetical order, streamlining processes like memory recall and solution memorization.
103
- - **Reflection**
104
- - The framework supports advanced AI concepts like Chain of Thought and reflection through customizable prompts. Users can choose between two reflection models: dianoia-small and dianoia-xl.
105
-
106
- > [!WARNING]
107
- > Changes to launch files since v0.6:
108
- > - main.py file has been replaced with run_ui.py (Web UI) and run_cli.py (terminal) launch files.
109
- > - The configuration has been moved to initialize.py for both Web UI and CLI launch files.
 
2
  # Agent Zero Documentation
3
  To begin with Agent Zero, follow the links below for detailed guides on various topics:
4
 
5
+ - **[Installation](installation.md):** Set up (or [update](installation.md#how-to-update-agent-zero)) Agent Zero on your system.
6
  - **[Quick Start](quickstart.md):** Begin using Agent Zero with practical examples.
7
  - **[Usage Guide](usage.md):** Explore advanced features and capabilities.
8
  - **[Architecture Overview](architecture.md):** Understand the internal workings of the framework.
9
  - **[Contributing](contribution.md):** Learn how to contribute to the Agent Zero project.
10
  - **[Troubleshooting and FAQ](troubleshooting.md):** Find answers to common issues and questions.
11
+ ##
12
  ### Your experience with Agent Zero starts now!
13
 
14
  - **Download Agent Zero:** Download the latest release from the [GitHub releases page](https://github.com/frdel/agent-zero/releases).
15
  - **Join the Community:** Join the Agent Zero [Skool](https://www.skool.com/agent-zero) or [Discord](https://discord.gg/Z2tun2N3) community to discuss ideas, ask questions, and collaborate with other contributors.
16
  - **Share your Work:** Share your Agent Zero creations, workflows and discoverings on our [Show and Tell](https://github.com/frdel/agent-zero/discussions/categories/show-and-tell) area on GitHub.
17
+ - **Report Issues:** Use the [GitHub issue tracker](https://github.com/frdel/agent-zero/issues) to report framework-relative bugs or suggest new features.
18
+ ##
19
  ## Table of Contents
20
 
21
  - [Welcome to the Agent Zero Documentation](#agent-zero-documentation)
 
34
  - [5. Configure Agent Zero](installation.md#5-configure-agent-zero)
35
  - [6. Run Agent Zero](installation.md#6-run-agent-zero)
36
  - [Choosing Your LLMs](installation.md#choosing-your-llms)
37
+ - [Installing and Using Ollama](installation.md#installing-and-using-ollama-local-models)
38
+ - [How to update Agent Zero](installation.md#how-to-update-agent-zero)
39
  - [How to create executable files for Agent Zero](installation.md#how-to-create-executable-files-for-agent-zero-in-windows-macos-and-linux)
40
  - [Conclusion](installation.md#conclusion)
41
  - [Quick Start](quickstart.md)
 
68
  - [Customization](architecture.md#customization)
69
  - [Custom Prompts](architecture.md#custom-prompts)
70
  - [Changing the System Prompt Folder](architecture.md#changing-the-system-prompt-folder)
 
71
  - [AgentConfig](architecture.md#agentconfig)
72
  - [Adding Tools](architecture.md#adding-tools)
73
  - [Adding Instruments](architecture.md#adding-instruments)
74
  - [Adding Extensions](architecture.md#adding-extensions)
 
75
  - [Contributing to Agent Zero](contribution.md)
76
  - [Getting Started](contribution.md#getting-started)
77
  - [Making Changes](contribution.md#making-changes)
78
  - [Submitting a Pull Request](contribution.md#submitting-a-pull-request)
79
  - [Documentation Stack](contribution.md#documentation-stack)
80
+ - [FAQ and Troubleshooting](troubleshooting.md)
81
  - [Frequently Asked Questions](troubleshooting.md#frequently-asked-questions)
82
+ - [Troubleshooting](troubleshooting.md#troubleshooting)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
docs/installation.md CHANGED
@@ -4,7 +4,7 @@
4
 
5
  The following guide provides both quick start instructions for the full installation of Agent Zero on various operating systems and in-depth guides for Windows and macOS with screenshots.
6
 
7
- ## You were looking for this? [How to update Agent Zero](#-how-to-update-agent-zero)
8
 
9
  <details>
10
  <summary><h2>Windows Quick Start</h2></summary>
@@ -227,7 +227,7 @@ python run_ui.py
227
  <img src="res/setup/image-23-1.png" alt="run ui" width="400"/>
228
  <br><br>
229
 
230
- ## Choosing Your LLMs
231
  The `initialize.py` file is the control center for selecting the Large Language Models (LLMs) that power Agent Zero. You can choose different LLMs for different roles:
232
 
233
  | LLM Role | Description |
@@ -254,7 +254,7 @@ The `initialize.py` file is the control center for selecting the Large Language
254
 
255
  - Experiment with different model combinations to find the balance of performance and cost that best suits your needs. E.g., faster and lower latency LLMs will help, and you can also use `faiss_gpu` instead of `faiss_cpu` for the memory.
256
 
257
- ### Installing and Using Ollama (Local Models)
258
  If you're interested in Ollama, which is a powerful tool that allows you to run various large language models locally, here's how to install and use it:
259
 
260
  #### First step: installation
@@ -300,7 +300,7 @@ Once you've downloaded some models, you might want to check which ones you have
300
  ollama rm <model-name>
301
  ```
302
 
303
- ## How to update Agent Zero
304
  To update Agent Zero to the latest version, follow these steps:
305
  - **Using Git/GitHub:** Pull the latest version of the Agent Zero repository with Git/GitHub. The custom knowledge, solutions, memory, and other data will get ignored by Git, so you don't need to worry about losing any of your custom data. The same goes for your .env file with all of your API keys.
306
  - **Backup LLM choices**: Before updating, make sure to save your customizations you've made to the first part of `def_initialize` function in the `initialize.py` file to choose your LLMs (highlighted section in below figure). This is important because the update process will overwrite these files with the default versions from the repository and can save you time rewriting all your LLMs choices.
@@ -330,5 +330,5 @@ Two scripts allows you to easily create executable files for Windows, macOS and
330
  > are run. If you want to run Agent Zero on another machine, you will need to run
331
  > the scripts on that machine as well to have executable files.
332
 
333
- ## Conclusion
334
  After following the instructions for your specific operating system, you should have Agent Zero successfully installed and running. You can now start exploring the framework's capabilities and experimenting with creating your own intelligent agents. If you encounter any issues during the installation process, please consult the Troubleshooting section of this documentation or refer to the Agent Zero community for assistance.
 
4
 
5
  The following guide provides both quick start instructions for the full installation of Agent Zero on various operating systems and in-depth guides for Windows and macOS with screenshots.
6
 
7
+ ## You were looking for this? [How to update Agent Zero](#how-to-update-agent-zero)
8
 
9
  <details>
10
  <summary><h2>Windows Quick Start</h2></summary>
 
227
  <img src="res/setup/image-23-1.png" alt="run ui" width="400"/>
228
  <br><br>
229
 
230
+ # Choosing Your LLMs
231
  The `initialize.py` file is the control center for selecting the Large Language Models (LLMs) that power Agent Zero. You can choose different LLMs for different roles:
232
 
233
  | LLM Role | Description |
 
254
 
255
  - Experiment with different model combinations to find the balance of performance and cost that best suits your needs. E.g., faster and lower latency LLMs will help, and you can also use `faiss_gpu` instead of `faiss_cpu` for the memory.
256
 
257
+ ## Installing and Using Ollama (Local Models)
258
  If you're interested in Ollama, which is a powerful tool that allows you to run various large language models locally, here's how to install and use it:
259
 
260
  #### First step: installation
 
300
  ollama rm <model-name>
301
  ```
302
 
303
+ # How to update Agent Zero
304
  To update Agent Zero to the latest version, follow these steps:
305
  - **Using Git/GitHub:** Pull the latest version of the Agent Zero repository with Git/GitHub. The custom knowledge, solutions, memory, and other data will get ignored by Git, so you don't need to worry about losing any of your custom data. The same goes for your .env file with all of your API keys.
306
  - **Backup LLM choices**: Before updating, make sure to save your customizations you've made to the first part of `def_initialize` function in the `initialize.py` file to choose your LLMs (highlighted section in below figure). This is important because the update process will overwrite these files with the default versions from the repository and can save you time rewriting all your LLMs choices.
 
330
  > are run. If you want to run Agent Zero on another machine, you will need to run
331
  > the scripts on that machine as well to have executable files.
332
 
333
+ ### Conclusion
334
  After following the instructions for your specific operating system, you should have Agent Zero successfully installed and running. You can now start exploring the framework's capabilities and experimenting with creating your own intelligent agents. If you encounter any issues during the installation process, please consult the Troubleshooting section of this documentation or refer to the Agent Zero community for assistance.
docs/quickstart.md CHANGED
@@ -18,8 +18,11 @@ python run_ui.py
18
 
19
  ![New Chat](res/ui_newchat1.png)
20
 
21
- - As you can see, the Web UI has four distinct buttons for easy chat management: `New Chat`, `Reset Chat`, `Save Chat`, and `Load Chat`.
22
- - Chats can be saved and loaded individually in `json` format and are stored in the `/tmp/chats` directory.
 
 
 
23
 
24
  ![Chat Management](res/ui_chat_management.png)
25
 
@@ -45,4 +48,7 @@ Now that you've run a simple task, you can experiment with more complex requests
45
  * Explore web development tasks
46
  * Create or modify files
47
 
48
- The Usage Guide provides more in-depth information on using Agent Zero's various features, including prompt engineering, tool usage, and multi-agent cooperation.
 
 
 
 
18
 
19
  ![New Chat](res/ui_newchat1.png)
20
 
21
+ > [!TIP]
22
+ > As you can see, the Web UI has four distinct buttons for easy chat management:
23
+ > `New Chat`, `Reset Chat`, `Save Chat`, and `Load Chat`.
24
+ > Chats can be saved and loaded individually in `json` format and are stored in the
25
+ > `/tmp/chats` directory.
26
 
27
  ![Chat Management](res/ui_chat_management.png)
28
 
 
48
  * Explore web development tasks
49
  * Create or modify files
50
 
51
+ > [!TIP]
52
+ > The [Usage Guide](usage.md) provides more in-depth information on using Agent
53
+ > Zero's various features, including prompt engineering, tool usage, and multi-agent
54
+ > cooperation.
docs/troubleshooting.md CHANGED
@@ -1,51 +1,56 @@
1
- # Quick Start
2
- This guide provides a quick introduction to using Agent Zero. We'll cover launching the web UI, starting a new chat, and running a simple task.
3
-
4
- ## Launching the Web UI
5
- 1. Make sure you have Agent Zero installed and your environment set up correctly (refer to the [Installation guide](installation.md) if needed).
6
- 2. Open a terminal in the Agent Zero directory and activate your conda environment (if you're using one).
7
- 3. Run the following command:
 
 
 
 
 
 
 
 
 
 
 
 
8
 
9
  ```bash
10
- python run_ui.py
11
  ```
12
 
13
- 4. A message similar to this will appear in your terminal, indicating the Web UI is running:
14
-
15
- ![](res/flask_link.png)
16
-
17
- 5. Open your web browser and navigate to the URL shown in the terminal (usually `http://127.0.0.1:50001`). You should see the Agent Zero Web UI.
18
 
19
- ![New Chat](res/ui_newchat1.png)
 
20
 
21
- > [!TIP]
22
- > As you can see, the Web UI has four distinct buttons for easy chat management:
23
- > `New Chat`, `Reset Chat`, `Save Chat`, and `Load Chat`.
24
- > Chats can be saved and loaded individually in `json` format and are stored in the
25
- > `/tmp/chats` directory.
26
 
27
- ![Chat Management](res/ui_chat_management.png)
 
28
 
29
- ## Running a Simple Task
30
- Let's ask Agent Zero to download a YouTube video. Here's how:
31
 
32
- 1. Type "Download a YouTube video for me" in the chat input field and press Enter or click the send button.
 
33
 
34
- 2. Agent Zero will process your request. You'll see its "thoughts" and the actions it takes displayed in the UI. It will find a default already existing solution, that implies using the `code_execution_tool` to run a simple Python script to perform the task.
35
 
36
- 3. The agent will then ask you for the URL of the YouTube video you want to download.
 
 
37
 
38
- ## Example Interaction
39
- Here's an example of what you might see in the Web UI at step 3:
40
- ![1](res/image-24.png)
41
 
42
- ## Next Steps
43
- Now that you've run a simple task, you can experiment with more complex requests. Try asking Agent Zero to:
44
 
45
- * Perform calculations
46
- * Search the web for information
47
- * Execute shell commands
48
- * Explore web development tasks
49
- * Create or modify files
50
 
51
- The [Usage Guide](usage.md) provides more in-depth information on using Agent Zero's various features, including prompt engineering, tool usage, and multi-agent cooperation.
 
1
+ # Troubleshooting and FAQ
2
+ This page addresses frequently asked questions (FAQ) and provides troubleshooting steps for common issues encountered while using Agent Zero.
3
+
4
+ ## Frequently Asked Questions
5
+ **1. How do I set up and activate a Python virtual environment?**
6
+ Use the `venv` module or `conda` (recommended).
7
+ * **`venv`:**
8
+ ```bash
9
+ python -m venv .venv # Create the environment
10
+ source .venv/bin/activate # Activate (Linux/macOS)
11
+ .venv\Scripts\activate # Activate (Windows)
12
+ ```
13
+ * **`conda`:**
14
+ ```bash
15
+ conda create -n agent-zero python=3.12 # Create
16
+ conda activate agent-zero # Activate
17
+ ```
18
+ **2. How do I resolve `ModuleNotFoundError` errors (e.g., for `ansio`, `pyflakes`, `Flask`)?**
19
+ Ensure your virtual environment is activated *before* installing requirements:
20
 
21
  ```bash
22
+ pip install -r requirements.txt
23
  ```
24
 
25
+ **3. How do I integrate open-source models with Agent Zero?**
26
+ Refer to the [Choosing your LLMs](installation.md#installing-and-using-ollama-local-models) section of the documentation for detailed instructions and examples for configuring different LLMs in `initialize.py`. Local models can be run using Ollama or LM Studio.
 
 
 
27
 
28
+ > [!TIP]
29
+ > Some LLM providers offer free usage of their APIs, for example Groq, Mistral or SambaNova.
30
 
31
+ **4. How can I make Agent Zero retain memory between sessions?**
32
+ Auto memory automatically saves and loads solutions and informations from previous sessions.
 
 
 
33
 
34
+ **5. Where can I find more documentation or tutorials?**
35
+ * Join the Agent Zero [Skool](https://www.skool.com/agent-zero) or [Discord](https://discord.gg/Z2tun2N3) community for support and discussions.
36
 
37
+ **6. How do I adjust API rate limits?**
38
+ Modify the `rate_limit_seconds` and `rate_limit_requests` parameters in the `AgentConfig` class within `initialize.py`.
39
 
40
+ **7. Can Agent Zero interact with external APIs or services (e.g., WhatsApp)?**
41
+ Extending Agent Zero to interact with external APIs is possible by creating custom tools or solutions. Refer to the documentation on creating them.
42
 
43
+ ## Troubleshooting
44
 
45
+ **Installation**
46
+ * **Dependency Conflicts:** If encountering version conflicts during installation, try creating a fresh virtual environment and reinstalling the requirements.
47
+ * **Docker Issues:** If Docker containers fail to start or Agent Zero can't connect to Docker, consult the Docker documentation and verify your Docker installation and configuration. On macOS, ensure you've granted Docker access to your project files in Docker Desktop's settings as described in the [Installation guide](installation.md#2-install-docker-docker-desktop-application).
48
 
49
+ **Usage**
50
+ * **"Nothing happens" when sending a message:** This often indicates a tool execution issue, an API connection problem, or rate limiting. Check your API keys, internet connection, and ensure any required services (like Docker) are running. Examine the logs for more details.
 
51
 
52
+ * **Terminal commands not executing:** If using Docker for code execution, ensure the Docker container is running and properly configured. Check SSH settings if applicable.
 
53
 
54
+ * **Error Messages:** Pay close attention to the error messages displayed in the Web UI or terminal. They often provide valuable clues for diagnosing the issue. Refer to the specific error message in online searches or community forums for potential solutions.
 
 
 
 
55
 
56
+ * **Performance Issues:** If Agent Zero is slow or unresponsive, it might be due to resource limitations, network latency, or the complexity of your prompts and tasks.