Skip to main content

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 輸出,例如 AgentSmart Function Components。

如需詳細資訊,請參閱語言模型Components

Anthropic 文字生成參數

某些參數在視覺編輯器中預設為隱藏。 您可以透過 Components的標頭選單 中的 Controls 修改所有參數。

NameTypeDescription
max_tokensInteger輸入參數。要生成的最大權杖數。設定為 0 表示無限制權杖。預設值:4096
modelString輸入參數。要使用的 Anthropic 模型名稱。選項包括各種 Claude 3 模型。
anthropic_api_keySecretString輸入參數。用於驗證的 Anthropic API 金鑰。
temperatureFloat輸入參數。控制輸出中的隨機性。預設值:0.1
anthropic_api_urlString輸入參數。Anthropic API 的端點。若未指定,預設為 https://api.anthropic.com
prefillString輸入參數。預填文字以引導模型的回應。
Search