Class AbstractSharedBedrockChatModel
java.lang.Object
dev.langchain4j.model.bedrock.internal.AbstractSharedBedrockChatModel
- Direct Known Subclasses:
AbstractBedrockChatModel
,AbstractBedrockStreamingChatModel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final String
protected static final String
protected final String
protected final software.amazon.awssdk.auth.credentials.AwsCredentialsProvider
protected static final String
protected static final String
protected final String
protected final Integer
protected final int
protected final software.amazon.awssdk.regions.Region
protected final String[]
protected final double
protected final int
protected final float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
chatMessageToString
(ChatMessage message) Convert chat message to stringprotected String
convertMessagesToAwsBody
(List<ChatMessage> messages) protected abstract String
Get model idgetRequestParameters
(String prompt)
-
Field Details
-
HUMAN_PROMPT
- See Also:
-
ASSISTANT_PROMPT
- See Also:
-
DEFAULT_ANTHROPIC_VERSION
- See Also:
-
humanPrompt
- See Also:
-
assistantPrompt
- See Also:
-
maxRetries
-
region
protected final software.amazon.awssdk.regions.Region region -
credentialsProvider
protected final software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider -
maxTokens
protected final int maxTokens- See Also:
-
temperature
protected final double temperature- See Also:
-
topP
protected final float topP- See Also:
-
stopSequences
-
topK
protected final int topK- See Also:
-
anthropicVersion
- See Also:
-
-
Constructor Details
-
AbstractSharedBedrockChatModel
public AbstractSharedBedrockChatModel()
-
-
Method Details
-
chatMessageToString
Convert chat message to string- Parameters:
message
- chat message- Returns:
- string
-
convertMessagesToAwsBody
-
getRequestParameters
-
getModelId
Get model id- Returns:
- model id
-