Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/e2b-dev/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://github.com/e2b-dev/agent-protocol
agents ai ai-agent api auto-gpt gpt-4 javascript llms openapi protocol python typescript
Last synced: 4 days ago
JSON representation
Common interface for interacting with AI agents. The protocol is tech stack agnostic - you can use it with any framework for building agents.
- Host: GitHub
- URL: https://github.com/e2b-dev/agent-protocol
- Owner: AI-Engineer-Foundation
- License: mit
- Created: 2023-07-06T14:39:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-11T00:59:29.000Z (5 months ago)
- Last Synced: 2024-10-29T15:48:13.732Z (14 days ago)
- Topics: agents, ai, ai-agent, api, auto-gpt, gpt-4, javascript, llms, openapi, protocol, python, typescript
- Language: Python
- Homepage: https://agentprotocol.ai
- Size: 1.37 MB
- Stars: 979
- Watchers: 14
- Forks: 118
- Open Issues: 36
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-llm-agents - Agent Protocol - Unified interface for AI agents. (Frameworks)
- awesome-ai-sdks - The Agent Protocol
README
## π Docs
**You can find more info in the [docs](https://agentprotocol.ai/).**
## π§Ύ Summary
The AI agent space is young. Most developers are building agents in their own way. This creates a challenge:
It's hard to communicate with different agents since the interface is often different every time.
Because we struggle with communicating with different agents, it's also hard to compare them easily.
Additionally, if we had a single communication interface with agents, it'd also make it easier developing devtools that works with agents out of the box.We present the **Agent Protocol** - a single common interface for communicating with agents.
Any agent developer can implement this protocol.
The Agent Protocol is an API specification - list of endpoints, which the agent
should expose with predefined response models.
The protocol is **tech stack agnostic**. Any agent can adopt this protocol no
matter what framework they're using (or not using).We believe, this will help the ecosystem grow faster and simplify the integrations.
We're starting with a minimal core. We want to build upon that iteratively
by learning from agent developers about what they actually need.## π The incentives to adopt the protocol
- Ease with which you can use the benchmarks.
- Other people can more easily use and integrate your agent
- Enable building general devtools (for development, deployment and monitoring)
that can be built on top of this protocol
- You donβt need to write boilerplate API and you can focus on developing your
agent## π― Immediate goals of the protocol
Set a general simple standard that would allow for easy to use benchmarking of
agents. One of the primary goals of the protocol is great developer experience,
and simple implementation on the end of agent developers. You just start your
agent and thatβs all you have to do.## π£οΈ Request for Comments
If you'd like to propose a change or an improvement to the protocol. Please
follow the [RFC template](./rfcs/template.md).## βοΈ Components
### [Protocol](./schemas/openapi.yml)
The most important part. It specifies which endpoints should the agent expose.
The protocol is defined in [OpenAPI specification](./schemas/openapi.yml).#### How does the protocol work?
Right now the protocol is defined as a REST API (via the
[OpenAPI spec](./schemas/openapi.yml)) with two essential routes for interaction with
your agent:- `POST /ap/v1/agent/tasks` for creating a new task for the agent (for example giving
the agent an objective that you want to accomplish)
- `POST /ap/v1/agent/tasks/{task_id}/steps` for executing one step of the defined taskIt has also a few additional routes for listing the tasks, steps and downloading / uploading artifacts.
### [SDK](https://github.com/AI-Engineer-Foundation/agent-protocol/tree/main/packages/sdk)
This is our implementation of the protocol. Itβs a library that you can use to build your agent. You can use it, or you can implement it on your own. Itβs up to you.
Using the SDK should simplify the implementation of the protocol to the bare minimum, but at
the same time it shouldn't tie your hands. The goal should be to allow agent
builders to build their agents and the SDK should solve the rest.Basically it wraps your agent in a web server that allows for communication with
your agent (and in between agents in the future).### [Client](https://github.com/AI-Engineer-Foundation/agent-protocol/tree/main/packages/client)
This library should be used by the users of the agents. Your agent is deployed somewhere and the users of your agent can use this library to interact with your agent.
Thanks to the standard the users can try multiple agents without the need for any additional adjustments (or very minimal) in their code.
## π¦ How to use the protocol
If you're an agent developer, you can use the SDK to implement the protocol. You can find more info in the [docs](https://agentprotocol.ai/) or in the [SDK folder](./sdk).
## π€ Adoption
### Engaged projects in development of agent protocol
- [e2b](https://e2b.dev)
- [Auto-GPT](https://news.agpt.co/)### Open-source agents and projects that have adopted Agent Protocol
- β [Auto-GPT](https://github.com/Significant-Gravitas/Auto-GPT)
- Track [PR here](https://github.com/Significant-Gravitas/Auto-GPT/pull/5044)
- β [Auto-GPT-Forge](https://github.com/Significant-Gravitas/Auto-GPT-Forge)
- π§ [babyagi](https://github.com/yoheinakajima/babyagi)
- Track [PR here](https://github.com/yoheinakajima/babyagi/pull/356). Waiting
for merge.
- β [smol developer](https://github.com/smol-ai/developer)
- Track [PR here](https://github.com/smol-ai/developer/pull/123).
- π§ [beebot](https://github.com/AutoPackAI/beebot)
- Might require more features. See
[issue here](https://github.com/AI-Engineer-Foundation/agent-protocol/issues/9).## π High-level future roadmap
- Agent-to-agent communication
- Connection to the outside world:
- 3rd party services (= βAgent I/Oβ)
- Authentication on behalf of users
- Protocol Plugins
- Is there anything missing? Please submit an RFC with a proposed feature!## π¬ Public discourse & development
- PRs and issues are welcome!
- Join [AIEF Discord](https://discord.gg/TxDzUWab) and their dedicated `agent-protocol` channel
- Join [Auto-GPT Discord](https://discord.gg/autogpt) and their dedicated
`agent-protocol` channel
- Join [e2b Discord](https://discord.gg/U7KEcGErtQ) and their dedicated
`agent-protocol` channel