com.alipay.api.response.AlipayCloudNextbuilderAgentChatGenerateResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alipay-sdk-java Show documentation
Show all versions of alipay-sdk-java Show documentation
Alipay openapi SDK for Java
Copyright © 2018 杭州蚂蚁金服
All rights reserved.
版权所有 (C)杭州蚂蚁金服
http://open.alipay.com
package com.alipay.api.response;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.domain.NbChatChunk;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.cloud.nextbuilder.agent.chat.generate response.
*
* @author auto create
* @since 1.0, 2024-08-28 23:24:08
*/
public class AlipayCloudNextbuilderAgentChatGenerateResponse extends AlipayResponse {
private static final long serialVersionUID = 7465199611314912456L;
/**
* 返回结果消息体内的具体内容
*/
@ApiField("data")
private NbChatChunk data;
/**
* 消息体返回的类型;
当event类型为 message 时,请解析 data以获取详细信息;当 event 类型为 error 时,请解析data 以获取错误信息;当 event 类型为 ping 时,仅用于请求保持,无需处理;当 event 类型为 end 时,表示所有内容已经完成返回,不会再有后续的包,调用方请关闭链接;
*/
@ApiField("event")
private String event;
/**
* 标注返回的流式结构序号
*/
@ApiField("id")
private Long id;
public void setData(NbChatChunk data) {
this.data = data;
}
public NbChatChunk getData( ) {
return this.data;
}
public void setEvent(String event) {
this.event = event;
}
public String getEvent( ) {
return this.event;
}
public void setId(Long id) {
this.id = id;
}
public Long getId( ) {
return this.id;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy