BedrockConfig

org.llm4s.llmconnect.config.BedrockConfig
See theBedrockConfig companion class
object BedrockConfig

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def fromValues(modelName: String, region: String, credentials: Option[BedrockCredentials], profile: Option[String], endpointUrl: Option[String])(using resolver: ContextWindowResolver): Result[BedrockConfig]

Constructs a BedrockConfig.

Constructs a BedrockConfig.

Context window and completion reserve come from the model registry, which lists Bedrock's regional inference-profile ids (us., eu., apac., global.) as well as the base model ids; a model it does not know gets conservative defaults.

Attributes

Returns

Left(ConfigurationError) for a blank region, an access key without a secret (or the reverse), a session token without credentials, or credentials together with a profile.