@Preview(value="3.1") public class ToolMessage extends Object implements ChatMessage
| Constructor and Description |
|---|
ToolMessage() |
ToolMessage(String content,
String name,
String toolCallId) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContent()
内容
|
String |
getName()
函数名
|
ChatRole |
getRole()
角色
|
String |
getToolCallId()
工具调用标识
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaugment, fromJson, isThinking, ofAssistant, ofSystem, ofTool, ofUser, ofUser, ofUser, ofUser, template, toJsonpublic ChatRole getRole()
getRole in interface ChatMessagepublic String getContent()
ChatMessagegetContent in interface ChatMessagepublic String getName()
public String getToolCallId()
Copyright © 2025. All rights reserved.