Class: Terret::Subagents::Result

Inherits:
Data
  • Object
show all
Defined in:
lib/terret/subagents.rb

Overview

status is the child's TURN status — :completed, :cancelled, :rejected or :empty (a failure raises instead). A caller rendering the child's text needs it to tell "had nothing to say" from "was stopped", and re-reading the child's log for a fact the turn already returned is a worse seam.

Instance Attribute Summary collapse

Instance Attribute Details

#session_idObject (readonly)

Returns the value of attribute session_id

Returns:

  • (Object)

    the current value of session_id



30
31
32
# File 'lib/terret/subagents.rb', line 30

def session_id
  @session_id
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



30
31
32
# File 'lib/terret/subagents.rb', line 30

def status
  @status
end

#textObject (readonly)

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



30
31
32
# File 'lib/terret/subagents.rb', line 30

def text
  @text
end

#usageObject (readonly)

Returns the value of attribute usage

Returns:

  • (Object)

    the current value of usage



30
31
32
# File 'lib/terret/subagents.rb', line 30

def usage
  @usage
end