Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@RyanLisse
Copy link

Summary

  • Add `/v1/responses` endpoint implementing the OpenResponses API standard
  • Item-based input (messages, function_call_output, reasoning items)
  • Semantic streaming events (response.created, response.output_text.delta, etc.)
  • Configurable via `gateway.http.endpoints.responses.enabled`

Test plan

  • 19 e2e tests covering auth, validation, routing, streaming
  • 262 gateway tests pass (no regression)
  • Build compiles
  • Lint passes

🤖 Generated with Claude Code

@RyanLisse RyanLisse marked this pull request as draft January 19, 2026 11:44
@RyanLisse RyanLisse marked this pull request as ready for review January 19, 2026 11:44
@RyanLisse RyanLisse marked this pull request as draft January 19, 2026 11:44
@RyanLisse RyanLisse marked this pull request as ready for review January 19, 2026 12:00
@steipete steipete self-assigned this Jan 20, 2026
@steipete
Copy link
Contributor

Hi Ryan, very cool. I took this MVP as base and made it into sth mergable. thanks!

@RyanLisse
Copy link
Author

Awesome , any tips to make it easier for review, want to understand how to make it a proper pr

Ryan Lisse and others added 7 commits January 20, 2026 07:37
Add a new `/v1/responses` endpoint implementing the OpenResponses API
standard for agentic workflows. This provides:

- Item-based input (messages, function_call_output, reasoning)
- Semantic streaming events (response.created, response.output_text.delta,
  response.completed, etc.)
- Full SSE event support with both event: and data: lines
- Configuration via gateway.http.endpoints.responses.enabled

The endpoint is disabled by default and can be enabled independently
from the existing Chat Completions endpoint.

Phase 1 implementation supports:
- String or ItemParam[] input
- system/developer/user/assistant message roles
- function_call_output items
- instructions parameter
- Agent routing via headers or model parameter
- Session key management

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Add input_image and input_file support with SSRF protection
- Add client-side tools (Hosted Tools) support
- Add turn-based tool flow with function_call_output handling
- Export buildAgentPrompt for testing
- Add schema validation tests for input_image, input_file, client tools
- Add buildAgentPrompt tests for turn-based tool flow
@steipete steipete merged commit 11b9b6d into openclaw:main Jan 20, 2026
@steipete
Copy link
Contributor

Landed via temp rebase onto main.

  • Gate: pnpm lint && pnpm build && pnpm test
  • Land commit: bbc67f3
  • Merge commit: 11b9b6d

Thanks @RyanLisse!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants