public class Message extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Message.Role |
| Modifier and Type | Field and Description |
|---|---|
private String |
content |
private String |
name |
private String |
role
目前支持三种角色参考官网,进行情景输入:https://platform.openai.com/docs/guides/chat/introduction
|
private List<ToolCallResult> |
toolCalls |
| Modifier and Type | Method and Description |
|---|---|
static Message |
of(String content) |
static Message |
ofAssistant(String content) |
static Message |
ofFunction(String function) |
static Message |
ofSystem(String content) |
private String role
private String content
private String name
private List<ToolCallResult> toolCalls
Copyright © 2024. All rights reserved.