dubbo-admin icon indicating copy to clipboard operation
dubbo-admin copied to clipboard

[Feature] Agent SSE streaming chat API design & Frontend Integration

Open stringl1l1l1l opened this issue 3 months ago • 0 comments

Objectives

Build a Chat UI frontend that integrates with the existing SSE streaming interface to provide a complete user interaction experience for Dubbo Admin AI functionality.

Backend Interface Status

For more details, please refer to Apifox.

SSE Streaming Chat Interface

Endpoint: POST /api/v1/ai/chat/stream Compatible with the Anthropic Claude SSE(https://docs.claude.com/en/docs/build-with-claude/streaming] message format. SSE Event Types:

- message_start         // Message start
- content_block_start   // Content block start
- content_block_delta   // Content delta (real-time text stream)
- content_block_stop    // Content block end
- message_delta         // Message metadata update
- message_stop          // Message end
- error                 // Error event
- ping                  // Ping event

Session Management Interface

Endpoint Method Function
/api/v1/ai/sessions POST Create session
/api/v1/ai/sessions GET List all sessions
/api/v1/ai/sessions/{sessionId} GET Get session details
/api/v1/ai/sessions/{sessionId} DELETE Delete session

Frontend References

1: K8M (https://github.com/weibaohui/k8m)

  • A Lightweight, Cross-Platform Mini Kubernetes AI Dashboard

2: Use Existing Anthropic-Compatible Chat UI

  • claude-ui: https://github.com/chihebnabil/claude-ui
  • For more, in https://github.com/billmei/every-chatgpt-gui

stringl1l1l1l avatar Sep 21 '25 13:09 stringl1l1l1l