Anthropic
Bundles 包含支援與 AgentBuilder 特定第三方整合的自訂Components。
此頁面描述 Anthropic bundle 中可用的Components。
有關 Anthropic Components使用的 Anthropic 功能和功能的詳細資訊,請參閱 Anthropic 文件。
Anthropic 文字生成
Anthropic Components使用 Anthropic Chat 和語言模型(如 Claude)生成文字。
它可以輸出 Model Response (Message) 或 Language Model (LanguageModel)。
具體來說,Language Model 輸出是根據Components參數設定的 ChatAnthropic 實例。
當您想要將 Anthropic 模型用作另一個 LLM 驅動Components的 LLM 時,請使用 Language Model 輸出,例如 Agent 或 Smart Function Components。
如需詳細資訊,請參閱語言模型Components。
Anthropic 文字生成參數
某些參數在視覺編輯器中預設為隱藏。 您可以透過 Components的標頭選單 中的 Controls 修改所有參數。
| Name | Type | Description |
|---|---|---|
| max_tokens | Integer | 輸入參數。要生成的最大權杖數。設定為 0 表示無限制權杖。預設值:4096。 |
| model | String | 輸入參數。要使用的 Anthropic 模型名稱。選項包括各種 Claude 3 模型。 |
| anthropic_api_key | SecretString | 輸入參數。用於驗證的 Anthropic API 金鑰。 |
| temperature | Float | 輸入參數。控制輸出中的隨機性。預設值:0.1。 |
| anthropic_api_url | String | 輸入參數。Anthropic API 的端點。若未指定,預設為 https://api.anthropic.com。 |
| prefill | String | 輸入參數。預填文字以引導模型的回應。 |