元編程參考文件

對話

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
所屬發行版
元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
對話
所屬包
機器學習