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.

Converse rejects tool-call history for tools the request does not declare. A ToolUse naming an undeclared tool, including every ToolUse in a request without tools, is therefore sent with its ToolResult as a plain-text transcript of the tool name, JSON input, output, and error status. Calls to declared tools stay native.

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.