arakoodev / EdgeChains

EdgeChains.js Typescript/Javascript production-friendly Generative AI. Based on Jsonnet. Works anywhere that Webassembly does. Prompts live declaratively & "outside code in config". Kubernetes & edge friendly. Compatible with OpenAI GPT, Gemini, Llama2, Anthropic, Mistral and others
https://www.arakoo.ai/
GNU Affero General Public License v3.0
338 stars 69 forks source link

Support for openAPI #74

Open maxiao124 opened 1 year ago

maxiao124 commented 1 year ago

do you consider construct agents to consume arbitrary APIs, here APIs conformant to the OpenAPI/Swagger specification.

sandys commented 1 year ago

@maxiao124 we have work-in-progress on an autogpt implementation to work as an autonomous agent. We have not targeted it for openapi/swagger, but we can do it.

is that what you are looking for ? if you can give me an example of a usecase, it will help me understand better.

P.S. you can also join our discord if you want to chat in realtime. link in Readme.

maxiao124 commented 1 year ago

thank you for you time,there is a link which is useful: https://python.langchain.com/en/latest/modules/agents/toolkits/examples/openapi.html

langchain is achieve this,but I want this in Java @sandys

Saatvik-droid commented 1 year ago

Hey @maxiao124 do you want to work with the Spotify api or do you have any other api documentation in mind. We will need at least the api documentation for our AutoGPT implementation to interact with it.

A sample task and apis it interacts with will do for an initial idea of the agent we want to achieve.

maxiao124 commented 1 year ago

OpenAPI is just a scenario, and I am more focused on importing JSON or YAML format files (Swagger specification) and combining them with LLM to achieve parsing natural language, using formatted prompt words, and calling corresponding APIs through proxies to connect business systems

@Saatvik-droid

Saatvik-droid commented 1 year ago

Just as a clarification @maxiao124

Correct me if I am wrong. You want to have users write a query in natural language and provide a Swagger JSON/YAML with the API spec and get our agent to generate relevant API requests?

maxiao124 commented 1 year ago

yep