元编程参考文档

对话

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
所属发行版
元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
对话
所属包
机器学习