Package-level declarations

Types

Link copied to clipboard
data class BedrockAnthropicInvokeModel(val anthropicVersion: String = "bedrock-2023-05-31", val maxTokens: Int = MAX_TOKENS_DEFAULT, val system: String = "", val temperature: Double? = 1.0, val messages: List<BedrockAnthropicInvokeModelMessage> = emptyList(), val tools: List<BedrockAnthropicInvokeModelTool>? = null, val toolChoice: BedrockAnthropicToolChoice? = null)

Represents the model to invoke an Anthropic service using Bedrock. refer to https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters-anthropic-claude-messages-request-response.html

Link copied to clipboard

Represents a class for constructing various types of content used in invoking models via the Bedrock Anthropic API.

Link copied to clipboard

Data class representing a message used to invoke a model in the Bedrock Anthropic API.

Link copied to clipboard
data class BedrockAnthropicInvokeModelTool(val type: String = "custom", val name: String, val description: String? = null, val inputSchema: JsonObject? = null)

Represents a tool used to interact with the Bedrock Anthropic model.

data class BedrockAnthropicInvokeModelToolResultContent(val type: String = "tool_result", val toolUseId: String, val content: String)

Represents the result of invoking a Bedrock Anthropic model tool.

Link copied to clipboard
data class BedrockAnthropicResponse(val id: String, val type: String, val role: String, val content: List<AnthropicResponseContent>, val model: String, val stopReason: String? = null, val usage: BedrockAnthropicUsage? = null)

Represents a response from Anthropic's API as processed by Bedrock.

Link copied to clipboard
data class BedrockAnthropicToolChoice(val type: String, val name: String? = null)

Represents the tool choice configuration for Anthropic via Bedrock.

Link copied to clipboard
data class BedrockAnthropicUsage(val inputTokens: Int, val outputTokens: Int)

Represents the token usage data for a request or transaction in the BedrockAnthropic API.