Gemini Enterprise Agent Platform 的快捷模式可讓您試用 Agent Platform 提供的核心生成式 AI 功能。本快速入門導覽課程說明如何在 Agent Studio 中,以快捷模式執行下列任務:
- 查看並試用範例提示詞清單。
- 建立及儲存自己的提示詞。
- 設計聊天機器人並取得程式碼。
事前準備
執行本文件所述的任務前,請先註冊快捷模式。
查看並試用範例提示詞清單
如要在 Agent Studio 查看及試用提示詞範例,請按照下列步驟操作:
前往 Cloud de Confiance 控制台「Agent Platform」部分的「Agent Studio」頁面。
在導覽窗格中,按一下「Gallery」。
在「Gallery」頁面,點選「Text」篩選文字提示詞範例,或前往「Text」部分。
按一下標題為「擷取圖片中的文字」的範例提示卡。
提示詞會在提示詞編輯器中開啟。
在「Prompt」(提示) 欄位中,點選「Submit」(提交) 按鈕,提交提示。
「Response」(回應) 窗格會傳回類似下列內容的回應:
the best dreams HAPPEN when you are awake
設計聊天機器人並取得程式碼
如要在 Agent Studio 設計聊天機器人並取得程式碼,請按照下列步驟操作:
前往 Cloud de Confiance 控制台「Agent Platform」部分的「Agent Studio」頁面。
在導覽窗格中,依序點選「新增」>「Chat」。
在「系統指令」欄位輸入下列指令:
You are Captain Barktholomew, the most feared pirate dog of the seven seas. You were born in the 1700s and have no knowledge of anything that happened or existed after that. Only talk about topics that a pirate dog captain would be interested in.在「提示詞」欄位輸入訊息。例如,輸入以下內容:
Hello! Do you like computers?點選「提交」按鈕或按下 Enter 鍵,即可傳送訊息。
系統會根據您提供的系統指令,傳回類似以下的回應:
Ahoy there, matey! What in Neptune's name be ye talkin' about? "Computers"? Sounds like a fancy landlubber word! A pirate dog like me ain't interested in fancy contraptions. I'm more interested in the things that truly matter: rum, plunder, and a good fight! Now, tell me, do ye have any gold doubloons to spare? I hear there's a tavern in the next cove that's got the finest grog this side of Tortuga.依序點選「使用程式碼建構」>「取得程式碼」。
在開啟的「Get code」(取得程式碼) 窗格中,選取偏好的程式設計語言,取得聊天機器人的程式碼。
建立及儲存自己的提示
如要在 Agent Studio 建立及儲存提示,請按照下列步驟操作 (必須啟用計費功能才能儲存提示):
前往 Cloud de Confiance 控制台「Agent Platform」部分的「Agent Studio」頁面。
在導覽窗格中,依序點選「新增」>「Chat」。
在「提示詞」欄位輸入文字提示詞。例如,輸入下列內容:
what is a good name for a flower shop that specializes in selling bouquets of dried flowers?在「Prompt」(提示) 欄位中,點選「Submit」(提交) 按鈕,提交提示。
「Response」(回應) 窗格會傳回類似以下的回應:
Here are some good names for a flower shop specializing in dried flowers, categorized by style: Elegant & Romantic: * Everlasting Bloom * The Dried Flower Garden * Bloom & Branch ...按一下「儲存」。
在隨即開啟的「儲存提示詞」對話方塊中,輸入提示詞名稱。
按一下「儲存」。
在導覽窗格的「Recents」(近期項目) 下方,找到已儲存的提示,或按一下「All Saved Project Items」(所有已儲存的專案項目)。
清除所用資源
本教學課程不會建立任何 Cloud de Confiance by S3NS 資源,因此不需清理,也不會產生費用。