Class: RubynCode::Observability::TurnMetrics

Inherits:
Data
  • Object
show all
Defined in:
lib/rubyn_code/observability/models.rb

Overview

Snapshot of metrics for a single agent turn (request/response cycle).

Instance Attribute Summary collapse

Instance Attribute Details

#cost_usdObject (readonly)

Returns the value of attribute cost_usd

Returns:

  • (Object)

    the current value of cost_usd



20
21
22
# File 'lib/rubyn_code/observability/models.rb', line 20

def cost_usd
  @cost_usd
end

#duration_msObject (readonly)

Returns the value of attribute duration_ms

Returns:

  • (Object)

    the current value of duration_ms



20
21
22
# File 'lib/rubyn_code/observability/models.rb', line 20

def duration_ms
  @duration_ms
end

#input_tokensObject (readonly)

Returns the value of attribute input_tokens

Returns:

  • (Object)

    the current value of input_tokens



20
21
22
# File 'lib/rubyn_code/observability/models.rb', line 20

def input_tokens
  @input_tokens
end

#modelObject (readonly)

Returns the value of attribute model

Returns:

  • (Object)

    the current value of model



20
21
22
# File 'lib/rubyn_code/observability/models.rb', line 20

def model
  @model
end

#output_tokensObject (readonly)

Returns the value of attribute output_tokens

Returns:

  • (Object)

    the current value of output_tokens



20
21
22
# File 'lib/rubyn_code/observability/models.rb', line 20

def output_tokens
  @output_tokens
end

#tool_calls_countObject (readonly)

Returns the value of attribute tool_calls_count

Returns:

  • (Object)

    the current value of tool_calls_count



20
21
22
# File 'lib/rubyn_code/observability/models.rb', line 20

def tool_calls_count
  @tool_calls_count
end