Class: AgentHarness::TokenUsageTracker::UsageEvent

Inherits:
Struct
  • Object
show all
Defined in:
lib/agent_harness/token_usage_tracker.rb

Instance Attribute Summary collapse

Instance Attribute Details

#input_tokensObject

Returns the value of attribute input_tokens

Returns:

  • (Object)

    the current value of input_tokens



28
29
30
# File 'lib/agent_harness/token_usage_tracker.rb', line 28

def input_tokens
  @input_tokens
end

#modelObject

Returns the value of attribute model

Returns:

  • (Object)

    the current value of model



28
29
30
# File 'lib/agent_harness/token_usage_tracker.rb', line 28

def model
  @model
end

#output_tokensObject

Returns the value of attribute output_tokens

Returns:

  • (Object)

    the current value of output_tokens



28
29
30
# File 'lib/agent_harness/token_usage_tracker.rb', line 28

def output_tokens
  @output_tokens
end

#providerObject

Returns the value of attribute provider

Returns:

  • (Object)

    the current value of provider



28
29
30
# File 'lib/agent_harness/token_usage_tracker.rb', line 28

def provider
  @provider
end

#request_idObject

Returns the value of attribute request_id

Returns:

  • (Object)

    the current value of request_id



28
29
30
# File 'lib/agent_harness/token_usage_tracker.rb', line 28

def request_id
  @request_id
end

#timestampObject

Returns the value of attribute timestamp

Returns:

  • (Object)

    the current value of timestamp



28
29
30
# File 'lib/agent_harness/token_usage_tracker.rb', line 28

def timestamp
  @timestamp
end

#total_tokensObject

Returns the value of attribute total_tokens

Returns:

  • (Object)

    the current value of total_tokens



28
29
30
# File 'lib/agent_harness/token_usage_tracker.rb', line 28

def total_tokens
  @total_tokens
end