AI-Engineer-Foundation / agent-protocol

Common interface for interacting with AI agents. The protocol is tech stack agnostic - you can use it with any framework for building agents.
https://agentprotocol.ai
MIT License
978 stars 118 forks source link

Needs GraphQL implementation #9

Open mlejva opened 1 year ago

mlejva commented 1 year ago

We've received feedback from an advanced user (working on AutoPack and Beebot) that the GraphQL implementation of the protocol might suit the needs of agent developers better:

The disadvantage is that GraphQL learning curve is steeper.

We should probably support both REST and GraphQL implementation but we can't do both at the same time for v1.

erik-megarad commented 1 year ago

FYI if this happens I would recommend Ariadne for the python library. Here's a quick page on how to integrate it into an existing fastapi instance so it's easy for graphql and rest endpoints to coexist.

https://ariadnegraphql.org/docs/fastapi-integration

jakubno commented 1 year ago

If I'm not mistaken, ariadne is schema first. We can then use this tool to get GQL. That should make it easier to keep everything in sync (and maybe to implement as well)