Class: Agents::RunResult
- Inherits:
-
Struct
- Object
- Struct
- Agents::RunResult
- Defined in:
- lib/agents/result.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
Returns the value of attribute context.
-
#error ⇒ Object
Returns the value of attribute error.
-
#messages ⇒ Object
Returns the value of attribute messages.
-
#output ⇒ Object
Returns the value of attribute output.
-
#usage ⇒ Object
Returns the value of attribute usage.
Instance Method Summary collapse
Instance Attribute Details
#context ⇒ Object
Returns the value of attribute context
4 5 6 |
# File 'lib/agents/result.rb', line 4 def context @context end |
#error ⇒ Object
Returns the value of attribute error
4 5 6 |
# File 'lib/agents/result.rb', line 4 def error @error end |
#messages ⇒ Object
Returns the value of attribute messages
4 5 6 |
# File 'lib/agents/result.rb', line 4 def @messages end |
#output ⇒ Object
Returns the value of attribute output
4 5 6 |
# File 'lib/agents/result.rb', line 4 def output @output end |
#usage ⇒ Object
Returns the value of attribute usage
4 5 6 |
# File 'lib/agents/result.rb', line 4 def usage @usage end |
Instance Method Details
#failed? ⇒ Boolean
9 10 11 |
# File 'lib/agents/result.rb', line 9 def failed? !success? end |
#success? ⇒ Boolean
5 6 7 |
# File 'lib/agents/result.rb', line 5 def success? error.nil? && !output.nil? end |