Class: LlmMock::Anthropic::TextBlock

Inherits:
Struct
  • Object
show all
Defined in:
lib/llm_mock_anthropic.rb

Overview

Value objects shaped like what the SDK returns. App code reads ‘.content` on a message, the block fields on each block, and `.text` / `.accumulated_message` on a stream — these provide exactly that surface.

Instance Attribute Summary collapse

Instance Attribute Details

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



18
19
20
# File 'lib/llm_mock_anthropic.rb', line 18

def text
  @text
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



18
19
20
# File 'lib/llm_mock_anthropic.rb', line 18

def type
  @type
end