Class: RCrewAI::Events::Usage

Inherits:
Struct
  • Object
show all
Defined in:
lib/rcrewai/events.rb

Instance Attribute Summary collapse

Instance Attribute Details

#completion_tokensObject

Returns the value of attribute completion_tokens

Returns:

  • (Object)

    the current value of completion_tokens



14
15
16
# File 'lib/rcrewai/events.rb', line 14

def completion_tokens
  @completion_tokens
end

#cost_usdObject

Returns the value of attribute cost_usd

Returns:

  • (Object)

    the current value of cost_usd



14
15
16
# File 'lib/rcrewai/events.rb', line 14

def cost_usd
  @cost_usd
end

#prompt_tokensObject

Returns the value of attribute prompt_tokens

Returns:

  • (Object)

    the current value of prompt_tokens



14
15
16
# File 'lib/rcrewai/events.rb', line 14

def prompt_tokens
  @prompt_tokens
end

#total_tokensObject

Returns the value of attribute total_tokens

Returns:

  • (Object)

    the current value of total_tokens



14
15
16
# File 'lib/rcrewai/events.rb', line 14

def total_tokens
  @total_tokens
end