docs: publish translated docs in twelve languages and the tool that maintains them (#3280)
This commit is contained in:
parent
14aa889992
commit
52ad0a8876
1 changed files with 89737 additions and 54 deletions
22
i18n/zh-hant/pages/servers/index.md
Normal file
22
i18n/zh-hant/pages/servers/index.md
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
translation:
|
||||
sections: [09defc170a0da89d]
|
||||
tool: 1
|
||||
---
|
||||
# 伺服器 {#servers}
|
||||
|
||||
`MCPServer` 向已連線的用戶端公開三種基本元件,差別在於由**誰**決定使用它們:
|
||||
|
||||
* **[工具](tools.md)** 是由**模型**挑選並呼叫的動作。這是大多數人最先想看的頁面,而 **[結構化輸出](structured-output.md)** 是它的參考配套頁面:關於工具回傳內容的形狀,全部都在那裡。
|
||||
* **[資源](resources.md)** 是由**應用程式**選擇讀取的唯讀資料。**[URI 範本](uri-templates.md)** 是它的參考配套頁面:完整的定址語法與路徑安全規則。
|
||||
* **[提示詞](prompts.md)** 是由**人**依名稱叫用的訊息範本,可以從選單或斜線指令觸發。
|
||||
|
||||
在這三種基本元件之外,伺服器還會宣告這些:
|
||||
|
||||
* **[自動完成](completions.md)** 是針對提示詞與資源範本引數的伺服器端自動完成功能。
|
||||
* **[圖片、音訊與圖示](media.md)** 涵蓋工具除了文字之外能回傳的一切,以及用戶端顯示在伺服器旁邊的圖示。
|
||||
* **[處理錯誤](handling-errors.md)** 說明模型能從中復原的錯誤,與模型絕對不能看到的錯誤,兩者之間的差別。
|
||||
|
||||
這裡的每一頁都各自獨立,直接跳到需要的那一頁即可。如果還沒建過伺服器,請先從 **[第一步](../get-started/first-steps.md)** 開始。
|
||||
|
||||
至於註冊的函式**內部**會發生什麼事(`Context`、相依性注入、在呼叫途中向使用者要求更多輸入),是下一節 **[在處理函式內部](../handlers/index.md)** 的內容。
|
||||
Loading…
Reference in a new issue