Class: RubyLLM::Team::Session::Call
- Inherits:
-
Struct
- Object
- Struct
- RubyLLM::Team::Session::Call
- Defined in:
- lib/ruby_llm/team.rb
Overview
rubocop:disable Metrics/ClassLength
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#artifact ⇒ Object
Returns the value of attribute artifact.
-
#coworker ⇒ Object
Returns the value of attribute coworker.
-
#inputs ⇒ Object
Returns the value of attribute inputs.
-
#prompt ⇒ Object
Returns the value of attribute prompt.
-
#result ⇒ Object
Returns the value of attribute result.
-
#status ⇒ Object
Returns the value of attribute status.
-
#usage ⇒ Object
Returns the value of attribute usage.
Instance Method Summary collapse
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action
62 63 64 |
# File 'lib/ruby_llm/team.rb', line 62 def action @action end |
#artifact ⇒ Object
Returns the value of attribute artifact
62 63 64 |
# File 'lib/ruby_llm/team.rb', line 62 def artifact @artifact end |
#coworker ⇒ Object
Returns the value of attribute coworker
62 63 64 |
# File 'lib/ruby_llm/team.rb', line 62 def coworker @coworker end |
#inputs ⇒ Object
Returns the value of attribute inputs
62 63 64 |
# File 'lib/ruby_llm/team.rb', line 62 def inputs @inputs end |
#prompt ⇒ Object
Returns the value of attribute prompt
62 63 64 |
# File 'lib/ruby_llm/team.rb', line 62 def prompt @prompt end |
#result ⇒ Object
Returns the value of attribute result
62 63 64 |
# File 'lib/ruby_llm/team.rb', line 62 def result @result end |
#status ⇒ Object
Returns the value of attribute status
62 63 64 |
# File 'lib/ruby_llm/team.rb', line 62 def status @status end |
#usage ⇒ Object
Returns the value of attribute usage
62 63 64 |
# File 'lib/ruby_llm/team.rb', line 62 def usage @usage end |
Instance Method Details
#complete? ⇒ Boolean
65 |
# File 'lib/ruby_llm/team.rb', line 65 def complete? = status != :running |
#error? ⇒ Boolean
64 |
# File 'lib/ruby_llm/team.rb', line 64 def error? = result.is_a?(Hash) && (result.key?(:error) || result.key?('error')) |
#successful? ⇒ Boolean
66 |
# File 'lib/ruby_llm/team.rb', line 66 def successful? = complete? && !error? |