对话
3 个节点
本页内容 3
添加消息
函数The conversation with one more message.
签名
添加消息 -> Conversation
对话: Conversation
角色: 文本
内容: 文本Conversation AddMessage(
Conversation conversation,
string role,
string content)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 对话 | Conversation | — | The conversation so far; empty to start one. |
| 角色 | 文本 | — | Who says it: user, assistant or system. |
| 内容 | 文本 | — | What is said. |
返回
| 对话 | Conversation |
- 所属发行版
- 元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 对话
- 所属包
- 机器学习
最后回复
函数The last thing the assistant said in a conversation.
签名
最后回复(对话: Conversation) -> 文本
string LastReply(Conversation conversation)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 对话 | Conversation | — | The conversation. |
返回
| 回复 | 文本 |
- 所属发行版
- 元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 对话
- 所属包
- 机器学习
开始对话
函数A new conversation, opened by a system message when one is given.
签名
开始对话(系统提示: 文本) -> Conversation
Conversation StartConversation(string system)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 系统提示 | 文本 | — | What the model is told about its part before anything is said, such as "You are a concise assistant."; empty for none. |
返回
| 对话 | Conversation |
- 所属发行版
- 元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 对话
- 所属包
- 机器学习