Class: RubyLLM::Team::Session::Call

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

Overview

rubocop:disable Metrics/ClassLength

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#actionObject

Returns the value of attribute action

Returns:

  • (Object)

    the current value of action



62
63
64
# File 'lib/ruby_llm/team.rb', line 62

def action
  @action
end

#artifactObject

Returns the value of attribute artifact

Returns:

  • (Object)

    the current value of artifact



62
63
64
# File 'lib/ruby_llm/team.rb', line 62

def artifact
  @artifact
end

#coworkerObject

Returns the value of attribute coworker

Returns:

  • (Object)

    the current value of coworker



62
63
64
# File 'lib/ruby_llm/team.rb', line 62

def coworker
  @coworker
end

#inputsObject

Returns the value of attribute inputs

Returns:

  • (Object)

    the current value of inputs



62
63
64
# File 'lib/ruby_llm/team.rb', line 62

def inputs
  @inputs
end

#promptObject

Returns the value of attribute prompt

Returns:

  • (Object)

    the current value of prompt



62
63
64
# File 'lib/ruby_llm/team.rb', line 62

def prompt
  @prompt
end

#resultObject

Returns the value of attribute result

Returns:

  • (Object)

    the current value of result



62
63
64
# File 'lib/ruby_llm/team.rb', line 62

def result
  @result
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



62
63
64
# File 'lib/ruby_llm/team.rb', line 62

def status
  @status
end

#usageObject

Returns the value of attribute usage

Returns:

  • (Object)

    the current value of usage



62
63
64
# File 'lib/ruby_llm/team.rb', line 62

def usage
  @usage
end

Instance Method Details

#complete?Boolean

Returns:

  • (Boolean)


65
# File 'lib/ruby_llm/team.rb', line 65

def complete? = status != :running

#error?Boolean

Returns:

  • (Boolean)


64
# File 'lib/ruby_llm/team.rb', line 64

def error? = result.is_a?(Hash) && (result.key?(:error) || result.key?('error'))

#successful?Boolean

Returns:

  • (Boolean)


66
# File 'lib/ruby_llm/team.rb', line 66

def successful? = complete? && !error?