@Preview(value="3.9.1") public class ChatChunk extends AbsAgentChunk
用于在流式生成过程中,实时传递底层的对话增量内容及其关联的轨迹信息
agentName, message, session| 构造器和说明 |
|---|
ChatChunk(SimpleTrace trace,
ChatResponse response) |
| 限定符和类型 | 方法和说明 |
|---|---|
ChatResponse |
getResponse() |
SimpleTrace |
getTrace() |
getAgentName, getMessage, getSessionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContent, hasContentpublic ChatChunk(SimpleTrace trace, ChatResponse response)
public SimpleTrace getTrace()
public ChatResponse getResponse()