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