Class: Opencode::Reply::Result

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

Overview

The denormalized output of a Reply once streaming completes (or recovery via Reply.distill produces an equivalent shape). Symmetric with Opencode::Turn::Result. Accessible by both message-style (‘result.full_text`) and hash-style (`result`) syntax — Struct supports both natively — but the typed shape stops callers from poking arbitrary keys.

Instance Attribute Summary collapse

Instance Attribute Details

#full_textObject

Returns the value of attribute full_text

Returns:

  • (Object)

    the current value of full_text



69
70
71
# File 'lib/opencode/reply.rb', line 69

def full_text
  @full_text
end

#parts_jsonObject

Returns the value of attribute parts_json

Returns:

  • (Object)

    the current value of parts_json



69
70
71
# File 'lib/opencode/reply.rb', line 69

def parts_json
  @parts_json
end

#reasoning_textObject

Returns the value of attribute reasoning_text

Returns:

  • (Object)

    the current value of reasoning_text



69
70
71
# File 'lib/opencode/reply.rb', line 69

def reasoning_text
  @reasoning_text
end

#tool_partsObject

Returns the value of attribute tool_parts

Returns:

  • (Object)

    the current value of tool_parts



69
70
71
# File 'lib/opencode/reply.rb', line 69

def tool_parts
  @tool_parts
end