跳至橫幅的結尾
前往橫幅的開頭

DaVinci Assistant API 介紹

跳至中繼資料的結尾
前往中繼資料的開頭

您正在檢視此內容的舊版本。請檢視目前版本

比較目前 檢視版本歷史記錄

« 上一頁 版本 6 下一步 »

Assistant API 介紹

Preview link

gradio link

使用教學

  1. 要先拿到 Assistant ID & User API key

  2. 建立與 Assistant 連線

    1. create thread → get thread ID

  3. 如何發送 user msg 到 Assistant

    1. create message → get message ID

  4. 如何取得 Assistant 的回應

    1. create run → run ID

    2. check run status → if run status == done

    3. list message →

  5. 當 Assistant 要求要執行 plugin 時,你要

    1. 怎樣知道 Assistant 要執行 plugin 以及什麼 plugin,要代入什麼參數?

    2. 打 run_plugin_api 來執行

    3. 將 plugin 結果傳回 Assistant

    4. 補充:file 時,先用 DocChat

  • 無標籤