public class Message extends Object
| Constructor and Description |
|---|
Message()
构造
|
Message(String role,
Object content)
构造
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getContent()
获取内容
|
String |
getRole()
获取角色
|
void |
setContent(Object content)
设置内容
|
void |
setRole(String role)
设置角色
|
Copyright © 2025. All rights reserved.