Skip to main content
Session & Event

订阅 Event Stream

通过 SSE 实时订阅会话事件

GET
/api/v1/agentstudio/sessions/{session_id}/events/stream
cURL
curl --request GET \
  --url 'https://{workspace_id}.{region}.maas.aliyuncs.com/api/v1/agentstudio/sessions/{session_id}/events/stream' \
  --header 'Authorization: Bearer <YOUR_API_KEY>'
{
  "type": "message",
  "content": [
    {
      "type": "text",
      "text": "正在分析数据..."
    }
  ]
}

Authorizations

string
header
required

DashScope API Key

Path Parameters

string
required

Response

200-application/json
enum<string>
message,session_status,error
object[]
Flow Agent API
RAG API
Connector API
框架集成
  • 框架
Assistant API(下线中)
  • 概览