Skip to content

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

@stringl1l1l1l

Description

@stringl1l1l1l

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions