Commit ef8b51e
docs(api-reference): add context override + 403 to /api/chat/workflow
Close two contract gaps surfaced by the open-agents diff (PR comment):
- Add optional `context.contextLimit: number` to ChatWorkflowRequest
so clients that already send `context` against open-agents' /api/chat
port over unchanged.
- Document 403 in the response list — separate from 404 so callers can
distinguish "session/chat doesn't exist" from "session/chat exists
but the API key's account doesn't own it" (the ownership check the
Bearer auth model requires).
Error response shape (`{status, message}` via ChatStreamErrorResponse)
intentionally kept — matches existing api convention rather than
open-agents' `{error, issues?}` shape.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a55a1c6 commit ef8b51e
1 file changed
Lines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
793 | 793 | | |
794 | 794 | | |
795 | 795 | | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
796 | 806 | | |
797 | | - | |
| 807 | + | |
798 | 808 | | |
799 | 809 | | |
800 | 810 | | |
| |||
3244 | 3254 | | |
3245 | 3255 | | |
3246 | 3256 | | |
| 3257 | + | |
| 3258 | + | |
| 3259 | + | |
| 3260 | + | |
| 3261 | + | |
| 3262 | + | |
| 3263 | + | |
| 3264 | + | |
| 3265 | + | |
| 3266 | + | |
3247 | 3267 | | |
3248 | 3268 | | |
3249 | 3269 | | |
| |||
0 commit comments