Claude

Description

The Claude component interfaces with AI capabilities provided by Anthropic.

※To use the Claude component, an API Key from Anthropic is required in advance. For instructions on obtaining an API Key from Anthropic, please refer to Claude API Key Setup.

Component Properties

Property NameDescriptionExample
Basic PropertiesSpecifies the basic properties under the "Claude" category
PlatformChoose from Anthropic, Bredrock, Vertex for the platform using Claude features
ModelSpecify the model name to be used according to the Claude feature and platform"claude-3-5-sonnet-20240620"
System MessageSet the initial message for the AI's role and behavioral guidelines
Sample Image FileSample image file for setting the context of the conversation
User Message Input ExampleSample user message for setting the context of the conversation
Assistant Response Output ExampleSample assistant response for setting the context of the conversation
Image FileThe image file to be used in actual conversations
Max TokensThe maximum number of tokens for responses. Although the maximum value varies by model, the maximum value for all models is 4096
Temperature(0—1.0) Controls the diversity of outputs. Lower values result in more predictable outputs, higher values produce more random outputs
TopP(0—1.0) Selects tokens based on cumulative probability. Values closer to 1.0 produce more diverse outputs
TopK(Integer) Limits the number of most likely tokens considered. Smaller values result in more focused outputs, larger values in more diverse outputs
Stop SequencesSpecifies certain strings to stop text generation. It's an array of JSON strings that halts generation when the specified sequence is reached.["END", "STOP", "."]
TimeoutAPI timeout
API KeyEnter when Anthropic is selected on the platform
Access KeyEnter when Bedrock is selected on the platform. Access key obtained from AWS
Secret Access KeyEnter when Bedrock is selected on the platform. Secret access key obtained from AWS
RegionChoose when Bedrock is selected on the platform. Select the region available for the Claude model to be used
Project IDEnter when Vertex is selected on the platform. The ID of the GCP project to be used
LocationEnter when Vertex is selected on the platform. The location selected determines the available models
Secret Key JSONEnter when Vertex is selected on the platform. The secret key JSON file needed for authentication of the service account created in Google Cloud

※ For more details on Anthropic-related models, refer to the Anthropic User Guide. It includes descriptions of the models, maximum tokens, and usage for Anthropic, Bedrock, and Vertex.

※ For details on Anthropic API timeout, refer to the Anthropic API Reference.

※ For any inquiries about the links related to Anthropic, please contact Anthropic directly.

※ For details on regions and permissions to use Claude with Amazon Bedrock, refer to Amazon Bedrock.

※ For any inquiries about the links related to Amazon Bedrock, please contact Amazon directly.

※ For details on locations related to Vertex, refer to Generative AI on Vertex AI. Be sure to refer to the English page as the Japanese page may be outdated. After enabling the Vertex AI API in the Before you begin section, you need to enable the Claude model card you intend to use.

※ For any inquiries about the links related to Vertex, please contact Google directly.

Output Payload

Output PayloadDescription
cv.PayloadStores the response from the Claude API as is

Output Component Local Variables

Component Local VariableDescription
idProcess ID
modelModel name used
stop_reasonReason for stopping
stop_sequenceSequence at which stopping occurred
input_tokensInput tokens
output_tokensOutput tokens