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

Add 404 responses to the valid responses where you look up by task id or step id

ntindle opened this issue · comments

Is your feature request related to a problem? Please describe.
The spec is incomplete on the defined behavior of what occurs when you request a task ID that doesn't exist. This is problematic as when not defined its indistinguishable from a 500 error which should have different behavior client side.

Describe the solution you'd like
I'd like 404 messages to be added as a documented response code for this case.

Describe alternatives you've considered
We can also not document it, but going forward you could expect people to use 500 in this case which shouldn't be used as there should be no errors that occur when this happens

Additional context
Add any other context or screenshots about the feature request here.

Hi @ntindle, thanks for your input. It makes sense! I'll address this one soon. I'll tag you in the PR

Added in #31