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
1.01k stars 120 forks source link

Ability to List Entities and not just Ids #51

Closed waynehamadi closed 1 year ago

waynehamadi commented 1 year ago

List tasks, artifacts and steps in a paginated way.

Feature name Support Pagination
Author(s) Merwane Hamadi (merwanehamadi@gmail.com)
RFC PR:
Updated 2023-08-28
Obsoletes

Summary

Allows to list resources.

Motivation

We can't build any app without an index. An index is a GET /tasks endpoint that list information about tasks. It's like a table.

Currently to build that you need to get the list of task ids. And if you want to display 20 tasks. You will make 20 GET calls to show them.

Agent Builders Benefit

Design Proposal

Just do what everyone does: return an array of objects that represent the resource

Alternatives Considered

Compatibility

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment | Name | Status | Preview | Updated (UTC) | | :--- | :----- | :------ | :------ | | **agent-protocol-docs** | ⬜️ Ignored ([Inspect](https://vercel.com/e2b/agent-protocol-docs/CLT3Hj6P8Cppbt5wf986krtsmZo7)) | [Visit Preview](https://agent-protocol-docs-git-fork-merwanehamadi-main-e2b.vercel.app) | Aug 29, 2023 2:27am |