@Preview(value="3.1") public class AssistantMessage extends Object implements ChatMessage
| Constructor and Description |
|---|
AssistantMessage() |
AssistantMessage(String content,
boolean isReasoning,
String reasoningContent,
List<Map> toolCallsRaw,
List<ChatFunctionCall> toolCalls) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContent()
内容(为空时,表示在思考)
|
String |
getReasoningContent()
思考内容
|
ChatRole |
getRole()
角色
|
List<ChatFunctionCall> |
getToolCalls()
工具调用
|
List<Map> |
getToolCallsRaw()
工具高用原始数据(需要回传)
|
boolean |
isReasoning()
是否思考中
|
String |
toString()
转为字符串
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfromJson, ofAssistant, ofSystem, ofTool, ofUser, ofUser, toJsonpublic ChatRole getRole()
getRole in interface ChatMessagepublic String getContent()
getContent in interface ChatMessagepublic boolean isReasoning()
public String getReasoningContent()
public List<ChatFunctionCall> getToolCalls()
Copyright © 2025. All rights reserved.