Class: RubyLLM::BedrockInvoke::RawContent
- Inherits:
-
Content::Raw
- Object
- Content::Raw
- RubyLLM::BedrockInvoke::RawContent
- Defined in:
- lib/ruby_llm/bedrock_invoke/raw_content.rb
Overview
Raw Anthropic content blocks that must be replayed verbatim on subsequent requests (server_tool_use / tool_search_tool_result and their siblings), while still displaying as the assistant's text.
RubyLLM renders RubyLLM::Content::Raw message content into the payload unchanged, which is exactly what the tool search tool requires: its server-side blocks are passed back untouched and expanded by the API.
Instance Method Summary collapse
-
#initialize(value, text: nil) ⇒ RawContent
constructor
A new instance of RawContent.
- #to_s ⇒ Object
Constructor Details
#initialize(value, text: nil) ⇒ RawContent
Returns a new instance of RawContent.
13 14 15 16 |
# File 'lib/ruby_llm/bedrock_invoke/raw_content.rb', line 13 def initialize(value, text: nil) super(value) @text = text end |
Instance Method Details
#to_s ⇒ Object
18 19 20 |
# File 'lib/ruby_llm/bedrock_invoke/raw_content.rb', line 18 def to_s @text.to_s end |