BedrockConfig

org.llm4s.llmconnect.config.BedrockConfig
See theBedrockConfig companion object
final case class BedrockConfig(region: String, model: String, contextWindow: Int, reserveCompletion: Int, credentials: Option[BedrockCredentials], profile: Option[String], endpointUrl: Option[String]) extends ProviderConfig

Configuration for the AWS Bedrock Converse API.

Authentication, in order of precedence: explicit credentials; the shared-config profile; otherwise the AWS default credential chain (environment variables, ~/.aws/credentials, EC2 instance profile, ECS task role, ...).

Build one with BedrockConfig.fromValues, which validates it and resolves contextWindow and reserveCompletion from the model registry.

Value parameters

contextWindow

Total token capacity of the model (prompt plus completion).

credentials

Explicit credentials; the default chain is used when absent.

endpointUrl

Endpoint override, e.g. a VPC endpoint or a test server.

model

Bedrock model id or inference-profile id, e.g. "anthropic.claude-3-5-sonnet-20241022-v2:0" or "us.anthropic.claude-3-5-sonnet-20241022-v2:0".

profile

AWS shared-config profile name.

region

AWS region that hosts the model, e.g. "us-east-1".

reserveCompletion

Tokens held back from prompt history for the completion.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
override def withModel(model: String): BedrockConfig

The same provider and credentials, pointed at a different model.

The same provider and credentials, pointed at a different model.

Attributes

Definition Classes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

override val providerId: ProviderId

Canonical id of the provider this config addresses, e.g. ProviderId("openai").

Canonical id of the provider this config addresses, e.g. ProviderId("openai").

Attributes