public class AgentAgentChat extends Object
| 构造器和说明 |
|---|
AgentAgentChat(Config config) |
| 限定符和类型 | 方法和说明 |
|---|---|
CreateAgentAgentChatResp |
create(CreateAgentAgentChatReq req)
发起智能体对话,异步发起一轮智能体对话,提交用户消息后立即返回对话ID,触发智能体在后台运行。
|
CreateAgentAgentChatResp |
create(CreateAgentAgentChatReq req,
RequestOptions reqOptions)
发起智能体对话,异步发起一轮智能体对话,提交用户消息后立即返回对话ID,触发智能体在后台运行。
|
GetAgentAgentChatResp |
get(GetAgentAgentChatReq req)
获取对话结果,本接口用于获取智能体的对话回复,内容包括文字和产物等信息。
|
GetAgentAgentChatResp |
get(GetAgentAgentChatReq req,
RequestOptions reqOptions)
获取对话结果,本接口用于获取智能体的对话回复,内容包括文字和产物等信息。
|
public AgentAgentChat(Config config)
public CreateAgentAgentChatResp create(CreateAgentAgentChatReq req, RequestOptions reqOptions) throws Exception
可通过 **流式输出** 实时获取结果或[获取对话结果](/uAjLw4CM/ukTMukTMukTM/aily-v1/agent-agent_chat/get)接口轮询运行状态与回复。;* 在请求体新增参数"stream": true 即可实现SSE的流式输出,超时时间5分钟;* 在请求体新增参数"session_id": "「会话ID」",即可复用这个session_id进行多轮对话 ;
Exceptionpublic CreateAgentAgentChatResp create(CreateAgentAgentChatReq req) throws Exception
可通过 **流式输出** 实时获取结果或[获取对话结果](/uAjLw4CM/ukTMukTMukTM/aily-v1/agent-agent_chat/get)接口轮询运行状态与回复。;* 在请求体新增参数"stream": true 即可实现SSE的流式输出,超时时间5分钟;* 在请求体新增参数"session_id": "「会话ID」",即可复用这个session_id进行多轮对话 ;
Exceptionpublic GetAgentAgentChatResp get(GetAgentAgentChatReq req, RequestOptions reqOptions) throws Exception
Exceptionpublic GetAgentAgentChatResp get(GetAgentAgentChatReq req) throws Exception
ExceptionCopyright © 2026. All rights reserved.