daveshap / OpenAI_Agent_Swarm

HAAS = Hierarchical Autonomous Agent Swarm - "Resistance is futile!"
MIT License
2.96k stars 382 forks source link

BOUNTY: Take a stab at building a tool maker agent #18

Closed daveshap closed 10 months ago

daveshap commented 10 months ago

Open bounty! Someone please take a stab at using the OpenAI Assistant to create a tool building assistant.

OWigginsHay commented 10 months ago

I was actually doing this at work today. A good foundation is tell all assistants that they can "Request_Function" where that is a tool function all assistants have which takes [name, description and schema] where schema is the json schema if the requested function. That is all the info you need to make a new tool and another agent or piece of code can add it programatically on request. Might see if I can make something soon

daveshap commented 10 months ago

Screenshots?

OWigginsHay commented 10 months ago

Yup give me sec, let me get some together and do an info dump. I don't often use github discussions so sorry if I do this inefficiently

OWigginsHay commented 10 months ago

image That is the tool function that lets the assistant request a new tool.

image This is the agent using initiative to request a new tool. I am pretending to be an agent in the layer above as I have not full code system to automate this yet.

Add the schema as a tool image

image

OWigginsHay commented 10 months ago

The version I had early was a little cleaner as it generated the JSON schema formatted without escaping characters... this version would need cleanup, but theoretically another assistant could do that

daveshap commented 10 months ago

Thanks, I'll play with this tomorrow. Great work

daveshap commented 10 months ago

Please submit a PR to integrate this into the tool_maker folder!

OWigginsHay commented 10 months ago

So branch and populate with an md file and images. Will that be okay? I'll try add some code to if i get time

daveshap commented 10 months ago

You can save it all in the README just make sure to include all instructions, JSON, etc so that people know exactly hwo to do it yeah. Images and screenshots to help would be great.

OWigginsHay commented 10 months ago

PRd