class LittleGhost::Providers::Bedrock

Bedrock lets LittleGhost agents use models available through Amazon Bedrock Converse. Its output follows the same streaming events as every other LittleGhost provider.

provider = LittleGhost::Providers::Bedrock.new(
  model: ENV.fetch("BEDROCK_MODEL_ID"),
  region: ENV.fetch("AWS_REGION")
)

The default client requires the optional aws-sdk-bedrockruntime gem and uses the AWS SDK credential chain. Applications may inject client instead.

Transient service and stream failures retry with exponential backoff. Each retry emits :model_retry and reports whether partial text was already emitted, allowing stream consumers to handle repeated output deliberately.