Module: Legion::Extensions::Llm::Bedrock::Translator::MessageRendering
- Included in:
- Legion::Extensions::Llm::Bedrock::Translator
- Defined in:
- lib/legion/extensions/llm/bedrock/translator/message_rendering.rb
Overview
Message rendering helpers for both Converse API and invoke_model wire formats.
B22: canonical-in, wire-out. The only input shape is Canonical::Message (the request normalizer guarantees it) — the recovery-§4 dual-shape reads (respond_to?/Hash), the msg.to_s fallbacks, and the fabricated {} tool_use inputs are deleted: the canonical type carries the fact, and a missing tool-call argument is the type's own documented no-arguments value, not a renderer fabrication.