# 工具

### 介紹

工具功能有助於輕鬆構建更複雜的提示。一般來說，一個工具包括一個或多個輸入字段，這些字段作為變量來製作更詳細的提示。這簡化了與 AI 的互動，因為用戶只需提供動態內容，我們的工具處理器將處理其餘部分。工具有兩種類型：**LLM 工具**和 **智能工具**。

* LLM 工具允許用戶只需提供少量輸入，這些輸入將被發送到預定義的提示中由 LLM 處理。每個工具充當一個模板，概述了提示所需的組件，使用戶能夠專注於內容而非格式。這對於經常生成類似提示並希望簡化工作流程的用戶特別有利。
* 智能工具通過整合 Python 代碼執行來擴展 LLM 工具的功能，以進行數據提取和處理。Python 的整合使得用戶能夠執行複雜的計算、數據轉換和其他超出標準 LLM 工具功能範疇的高級操作。

### 使用方法

要使用工具，請點擊提示輸入框下方的 **預設工具** 按鈕，您將在頁面的右側看到可用工具的列表。當您點擊這些工具中的一個時，輸入區域會被修改，您將看到該工具所期望的輸入。在填寫這些內容並提交您的選擇後，該工具將在您當前的對話中回應輸出。然後，您將回到預設的對話模式，您可以通過回覆或後續問題與工具的回應互動。

<figure><img src="/files/W6s9TxdCV9NExUTjanqe" alt="tools menu"><figcaption><p>工具菜單</p></figcaption></figure>

在對話中，您可能會發現使用多個工具對您有幫助。您可能會先使用一個工具來獲取策略建議。然後，您可能會使用 SQL 工具來編寫查詢以產生一些後續分析。最後，您可能會使用寫作工具將您的結果整理成針對您結果的受眾的格式。

### 定義您自己的工具

在接下來的章節中，我們將向您展示如何使用我們的默認工具來完成日常任務。要定義自訂工具，請了解更多資訊，請參閱 [開發自己的工具](/zh-hk/developers/develop-your-own-tools.md)。

© 2023 SkyDeck AI Inc.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.skydeck.ai/zh-hk/genstudio-workspace/tools.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
