Values

claude-3-5-sonnet

claude-3-5-sonnet: Str "anthropic.claude-3-5-sonnet-20240620-v1:0"

claude-3-haiku

claude-3-haiku: Str "anthropic.claude-3-haiku-20240307-v1:0"

claude-3-opus

claude-3-opus: Str "anthropic.claude-3-opus-20240229-v1:0"

claude-3-sonnet

claude-3-sonnet: Str "anthropic.claude-3-sonnet-20240229-v1:0"

llama-2-13b

llama-2-13b: Str "meta.llama2-13b-chat-v1"

llama-2-70b

llama-2-70b: Str "meta.llama2-70b-chat-v1"

llama-3-70b

llama-3-70b: Str "meta.llama3-70b-instruct-v1:0"

llama-3-8b

llama-3-8b: Str "meta.llama3-8b-instruct-v1:0"

mistral-7b

mistral-7b: Str "mistral.mistral-7b-instruct-v0:2"

mistral-large

mistral-large: Str "mistral.mistral-large-2402-v1:0"

mixtral-8x7b

mixtral-8x7b: Str "mistral.mixtral-8x7b-instruct-v0:1"

titan-embed-text

titan-embed-text: Str "amazon.titan-embed-text-v1"

titan-text-express

titan-text-express: Str "amazon.titan-text-express-v1"

titan-text-lite

titan-text-lite: Str "amazon.titan-text-lite-v1"

Functions

get-foundation-model

fn (model_identifier: Str): GetFoundationModelResponse | ::aws::core/AwsError

Get details about a specific foundation model.

Example

result ::aws::bedrock::models/get-foundation-model("amazon.nova-micro-v1:0")
model result.model
// => {model_id: "amazon.nova-micro-v1:0", model_name: "Nova Micro", ...}

list-foundation-models

fn (by_provider: Str, by_customization_type: Str, by_output_modality: Str, by_inference_type: Str): ListFoundationModelsResponse | ::aws::core/AwsError
fn (by_provider: Str): ListFoundationModelsResponse | ::aws::core/AwsError
fn (): ListFoundationModelsResponse | ::aws::core/AwsError

List all available foundation models in Bedrock.

Optionally filter by provider, customization type, output modality, or inference type.

Example

// List all models
result ::aws::bedrock::models/list-foundation-models()
models result.models
// => [{model_id: "amazon.nova-micro-v1:0", provider_name: "Amazon", ...}, ...]

// List models by provider
result ::aws::bedrock::models/list-foundation-models("Anthropic")

Types

FoundationModel

FoundationModel type {
    model_arn: Str?,
    model_id: Str?,
    model_name: Str?,
    provider_name: Str?,
    input_modalities: Vec?,
    output_modalities: Vec?,
    response_streaming_supported: Bool?,
    customizations_supported: Vec?,
    inference_types_supported: Vec?,
    model_lifecycle: Map?
}

GetFoundationModelResponse

GetFoundationModelResponse type {
    model: FoundationModel?
}

ListFoundationModelsResponse

ListFoundationModelsResponse type {
    models: Vec
}