Class: AgentHarness::TokenTracker::TokenEvent

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

Overview

Token usage event structure

Instance Attribute Summary collapse

Instance Attribute Details

#input_tokensObject

Returns the value of attribute input_tokens

Returns:

  • (Object)

    the current value of input_tokens



23
24
25
# File 'lib/agent_harness/token_tracker.rb', line 23

def input_tokens
  @input_tokens
end

#modelObject

Returns the value of attribute model

Returns:

  • (Object)

    the current value of model



23
24
25
# File 'lib/agent_harness/token_tracker.rb', line 23

def model
  @model
end

#output_tokensObject

Returns the value of attribute output_tokens

Returns:

  • (Object)

    the current value of output_tokens



23
24
25
# File 'lib/agent_harness/token_tracker.rb', line 23

def output_tokens
  @output_tokens
end

#providerObject

Returns the value of attribute provider

Returns:

  • (Object)

    the current value of provider



23
24
25
# File 'lib/agent_harness/token_tracker.rb', line 23

def provider
  @provider
end

#request_idObject

Returns the value of attribute request_id

Returns:

  • (Object)

    the current value of request_id



23
24
25
# File 'lib/agent_harness/token_tracker.rb', line 23

def request_id
  @request_id
end

#timestampObject

Returns the value of attribute timestamp

Returns:

  • (Object)

    the current value of timestamp



23
24
25
# File 'lib/agent_harness/token_tracker.rb', line 23

def timestamp
  @timestamp
end

#total_tokensObject

Returns the value of attribute total_tokens

Returns:

  • (Object)

    the current value of total_tokens



23
24
25
# File 'lib/agent_harness/token_tracker.rb', line 23

def total_tokens
  @total_tokens
end