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.

Home Page:https://agentprotocol.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JS/TS Agent Protocol v0.2.0

jakubno opened this issue · comments

Is your feature request related to a problem? Please describe.
The agent protocol spec has been updated, we need to update JS SDK to match the spec.

Describe the solution you'd like
Python SDK has been refactored quite a lot, you should imitate the python implementation .

  • We added artifacts
  • Each task has own workspace where it can save the files (this should be configurable with environment variable AGENT_WORKSPACE)
  • There' s download endpoint
  • We added db property to Agent class. Without changes it default to in memory storage, but the user should be able to change it to his preferred storage (probably some form of database).
  • The task / step handler logic has been reworked. Now the functions receive Task / Step on the input. This allows agent to run statelessly
  • Routes should be extensible, if the agent want to add another endpoint or change the default implementation, he should be able to.