class LittleGhost::Providers::Bedrock

Bedrock lets LittleGhost features use models available through Amazon Bedrock. Generation uses Converse and 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 uses LittleGhost’s standard-library SigV4 and AWS EventStream implementations. 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.