1. Agent 对话
Dora接口
  • fine_auth_token使用规范
  • Agent 对话
    • 发起正式 Agent 对话
      POST
    • 发起 Agent 预览对话
      POST
    • 中断正在执行的对话
      POST
    • 获取推荐追问
      POST
  • 会话管理
    • 关闭会话
      POST
    • 查询会话历史
      POST
    • 查询会话引用的 BI 资源
      GET
    • 查询单轮资源引用
      POST
    • 查询 Agent 会话列表
      POST
    • 删除会话
      POST
    • 重命名会话
      POST
  • Artifact
    • 获取 artifact 预览内容
      POST
    • 保存 artifact 文本内容
      POST
    • 下载 artifact
      GET
    • 将 artifact 安装为自定义技能
      POST
  • Agent 配置
    • 查询可编辑 Agent 列表
      GET
    • 查询可编辑 Agent 详情
      GET
    • 查询已发布 Agent 展示信息
      GET
    • 查询 Agent 已绑定 Skill
      GET
    • 获取已发布到工作台的 Agent
      GET
    • 创建 Agent 草稿
      POST
    • 保存 Agent 配置
      POST
    • 发布 Agent
      POST
  • 会话文件
    • 将文件加入会话
      POST
    • 查询会话文件
      GET
    • 删除会话文件
      POST
  • Skill
    • 查询可用 Skill
  • LLM
    • 查询 LLM 配置
  • 数据模型
    • ApiResponseBase
    • SuccessEnvelope
    • AgentDisplayInfoListResponse
    • ErrorResponse
    • ObjectEnvelope
    • AgentDisplayInfo
    • AgentTag
    • AgentUploadRequest
    • SessionExperienceConfig
    • QuestionCategory
    • UploadDeleteRequest
    • UploadFileItem
    • UploadResult
    • UploadFileList
    • UploadResultEnvelope
    • UploadFileListEnvelope
    • AgentChatRequest
    • AgentTestChatRequest
    • AgentHistoryRequest
    • AgentAbortRequest
    • DisplayMessage
    • SessionHistory
    • SessionHistoryEnvelope
    • AgentChatResource
    • AgentChatConnectorGroup
    • AgentChatResources
    • AgentChatResourcesEnvelope
    • QueryResourceReferenceRequest
    • QueryResourceReference
    • QueryResourceReferenceListEnvelope
    • AgentArtifactRequest
    • AgentArtifactSaveRequest
    • AgentArtifactInstallRequest
    • AgentArtifactContent
    • AgentArtifactContentEnvelope
    • SessionListRequest
    • SessionDeleteRequest
    • SessionRenameRequest
    • ScheduledTaskBrief
    • SessionItem
    • SessionItemListEnvelope
    • RecommendQuestionsRequest
    • RecommendQuestionsResult
    • RecommendQuestionsEnvelope
    • SkillConfig
    • AgentSummary
    • AgentConfig
    • CreateAgentRequest
    • CreateAgentResult
    • AgentPublishRequest
    • PublishAgentResult
    • AvailableSkill
    • LlmConfig
    • AgentSummaryListEnvelope
    • AgentConfigEnvelope
    • AgentDisplayInfoEnvelope
    • SkillConfigListEnvelope
    • CreateAgentResultEnvelope
    • PublishAgentResultEnvelope
    • AvailableSkillListEnvelope
    • LlmConfigListEnvelope
  1. Agent 对话

发起正式 Agent 对话

POST
/ai/agent/chat
使用当前用户可访问的已发布 Agent,通过 SSE 流式返回;超时时间 30 分钟。

请求参数

Header 参数

Body 参数application/json必填

示例
{
    "agentId": "string",
    "sessionId": "string",
    "queryId": "string",
    "runId": "string",
    "lastEventId": "string",
    "query": "string",
    "parameters": {},
    "files": [
        {
            "filename": "string",
            "size": "string",
            "path": "string",
            "virtualPath": "string",
            "artifactUrl": "string",
            "status": "uploaded",
            "markdownFile": "string",
            "markdownPath": "string",
            "markdownVirtualPath": "string",
            "markdownArtifactUrl": "string"
        }
    ]
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location '/ai/agent/chat' \
--header 'Last-Event-ID;' \
--header 'Content-Type: application/json' \
--data '{
    "agentId": "string",
    "sessionId": "string",
    "queryId": "string",
    "runId": "string",
    "lastEventId": "string",
    "query": "string",
    "parameters": {},
    "files": [
        {
            "filename": "string",
            "size": "string",
            "path": "string",
            "virtualPath": "string",
            "artifactUrl": "string",
            "status": "uploaded",
            "markdownFile": "string",
            "markdownPath": "string",
            "markdownVirtualPath": "string",
            "markdownArtifactUrl": "string"
        }
    ]
}'

返回响应

🟢200
text/event-stream
SSE 事件流,常见事件为 messages、custom、metadata、end、stream_error。
Bodytext/event-stream

示例
null
修改于 2026-08-25 03:04:03
上一页
fine_auth_token使用规范
下一页
发起 Agent 预览对话
Built with