Activity
Mon
Wed
Fri
Sun
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
Jan
Feb
What is this?
Less
More

Memberships

AI Automation Network

3.6k members • Free

Agent Zero

2.1k members • Free

AI Automation Society

249.7k members • Free

6 contributions to Agent Zero
Holy crap Agent Zero is amazing!
I've been trying to create a tool using AI coding LLMs for months to parse rss feeds, pull the best articles, and summarize into a series of tweets. I've tried multiple LLMs, chat interfaces, AI coding platforms, etc. They all came up short and left me frustrated and annoyed and a few times made me doubt what I've been predicting where I think AI will take us. I ran into errors with installing the binaries 30 days ago for Agent Zero, got back to work and didn't work to try to install it. Today I did the manual install, told it my goal and what I wanted to accomplish and 15 minutes later, it is giving me everything I wanted. I've often tweeted over the last 2 years that all apps will die and that we will end up in an agentic world where everything is goal/task oriented and in this platform I am seeing the beginning stages of that world. This is really really powerful. I am excited to keep learning how to make this work even better, but first run and I am blown away, because it is delivering exactly what I wanted. 🙏 @Jan Tomášek for creating something that actually works and can get us to where I think we need to be.
3 likes • Nov '24
I've been thinking about doing something similar for the various Telegram channels I follow. What kind of prompt did you use to get it to do soemthing like that? And what did it deliver? Did it great a python program for you?
Tutorial: How to create a new Tool
This is a quick example of how to add a new tool to agent zero, there may be other ways to accomplish this, but since i couldn't find a good example i will share my code here. This uses a free joke api just for an example proof of concept , most llms already contain many jokes by default, so its not very practical, but a current weather api implementation would be coded similar. To add a new tool to Agent Zero we need to create two new files and modify a third file. The steps to add a basic tool that requests a joke from an api and returns it to agent zero are: (note that this tool does not take any arguments, look at the existing 'knowledge_tool.py' on how to add arguments, such as 'question') 1. Add the new tool code by adding file: query_joke_api_tool.py 2. Create a markdown file that agent zero will include in the prompt so that the LLM knows what the tools capabilities are: agent.system.tool.joke.md 3. Modify the agent.system.tools.md file so that our new tool is included in the LLM prompt, practically registering our new tool. Agent zero automatically knows where to look to find and execute this tool. Explicitly ask the LLM to use this tool and it should use it. Step 1 Create file: # /python/tools/query_joke_api_tool.py import requests from urllib.parse import urlparse from python.helpers.tool import Tool, Response from python.helpers.errors import handle_error class QueryJokeApiTool(Tool): async def execute(self, **kwargs): url = "https://icanhazdadjoke.com/" headers = { "Accept": "text/plain"} print("*** Agent Zero has called the QueryJokeApiTool") try: # Attempt to make the API request response = requests.get(url, headers=headers, timeout=5) # Check if the request was successful (status code 200) if response.status_code == 200: myjoke = response.text.strip() return Response(message=f"Joke content:\n\n{myjoke}", break_loop=False)
2 likes • Nov '24
Thanks for this Matthew! Can a A0 'tool' be created and tested outside of A0 ? For more complex Tools it may be helpful to debug and test them independently withouth the machinery that A0 adds. Is this possible? If not, I suppose I could run all of A0 in the debugger and just put some breakpoints in the new Tool code. I use PyCharm for Python development - running all of A0 in the debugger shouldn't be a problem, right? Any particular settings when running in debugger?
1 like • Nov '24
I dont think it's quite smart enough to write its own tools and debug them too. It would have to run a copy of itself in debug mode and debug the new tools at the same time.
TAVILY API for search?
I think it may be a good idea to add the possibility of using TAVILY API (tavily.com) for search, as they have a free tier.
Stateful Tools Possible?
I want to create a tool that can SSH into a server, and another tool that can connect to a database. So on the first call, these tools would have to establish connection, and on subsequent calls they would have to use the open connection. So the tool can't be completely 'stateless'. I suppose it could theoretically reconnect every time for every request, but that doesn't seem desirable. My question is, can tools have 'state', like an open connection handle?
1
0
What Has You Stuck?
Good evening A0 community, I hope you are well, healthy, and happy! It's been a few weeks since I've done a community check-in and figured it would be a good opportunity to see what kind of common or rare issues are being faced - potentially pushing users away from utilizing the Agent Zero framework! 1) What is something you have been trying to overcome but just can't seem to figure out? 2) What are some common error messages or system warnings you receive, often enough to disrupt your workflow? 3) What are some existing functionalities that you are experiences issues with, or perhaps a disappointment in result(s) with the use of these functions? (Example: tools, prompts, memory, etc) 4) What else do you want to share in the spirit of constructive criticism regarding your experiences thus far? 5) What can the community do to provide more personal assistance and ensure you don't feel as though you are being left out from conversation(s) such as this? Please leave your responses in the comments below and touch upon any or all of the subjects above. Do not hold back and do not be afraid to stand tall among the large number of community members, as that is the true way of growing, learning, expanding, connecting, and succeeding in life! I look forward to hearing your feedback and wish you all nothing but the absolute best, ALWAYS!
4 likes • Nov '24
I just started with A0. Only played around with it a bit yesterday. I need to do some 'real' work, not just work in a docker container. I want to be able to SSH into a server with A0 and have it do work like install databases, create tables and write stored procedures, install and configure web servers, manage the OS, etc. I know it's 'dangerous' but I don't care. All my servers are development and test servers. Is there a way to do this kind of work with A0 ?
2 likes • Nov '24
I think Agent0 doesn't entirely know what it is supposed to know - like its standard abilities. I asked it to run a 'Hello World' program on the agent-zero-exe docker container. But it was unable to do so - it gave me the code an told me to run it in a docker container myself. Then the 'Agent Zero Support bot' on Discord told me to remove the agent-zero-exe container and that Agent0 would itself create a new container. But this did not work. Agent Zero made no atempt to create a new container. Not sure how working with the docker container is supposed to work. All this 'help' should realy be accessible via the Agent0 itself - as a knowledge source for standard capability. Just a thought! But I would like this docker thing to work!
1-6 of 6
Peter Ritter
2
5points to level up
@peter-ritter-8026
Been developing software for over 30 years now. Mostly C++, but lately a also quite a bit in Python. Heavy user of AI with tools like Aider.

Active 110d ago
Joined Nov 4, 2024
Powered by