Files
floci/docs
TiM c565398beb feat(bedrock-runtime): stub Converse and InvokeModel for #87 (#486)
Adds a bedrock-runtime service stub so AWS SDK and CLI clients can target
Floci for local development of Bedrock Runtime callers. Dummy responses
only: no real model inference.

- Register bedrock-runtime in ResolvedServiceCatalog under both "bedrock"
  and "bedrock-runtime" credential scopes (boto3 signs with signingName
  "bedrock" while some clients use the endpoint id)
- POST /model/{modelId}/converse returns a fixed assistant message plus
  synthetic usage and latency metrics matching the AWS Converse contract
- POST /model/{modelId}/invoke returns an Anthropic-shaped body for
  anthropic.* and *.anthropic.* model ids, generic {"outputs": [...]}
  otherwise. Request body is passed through as opaque bytes
- {modelId:.+} path regex accepts full ARNs (inference profiles,
  provisioned throughput) in addition to plain ids
- converse-stream and invoke-with-response-stream return 501 so SDKs
  get a clear error instead of 404
- Response building uses JsonNode rather than typed POJOs, avoiding
  native-image reflection registration

13 new integration tests (Converse + InvokeModel happy paths, validation,
inference-profile ids and ARNs, 501 streaming responses). Full suite
remains green: 2263 tests, 0 failures.
2026-04-16 17:13:17 -05:00
..
2026-04-11 09:59:05 -05:00
2026-03-15 17:43:56 -05:00