Class: RubynCode::Observability::TurnMetrics
- Inherits:
-
Data
- Object
- Data
- RubynCode::Observability::TurnMetrics
- Defined in:
- lib/rubyn_code/observability/models.rb
Overview
Snapshot of metrics for a single agent turn (request/response cycle).
Instance Attribute Summary collapse
-
#cost_usd ⇒ Object
readonly
Returns the value of attribute cost_usd.
-
#duration_ms ⇒ Object
readonly
Returns the value of attribute duration_ms.
-
#input_tokens ⇒ Object
readonly
Returns the value of attribute input_tokens.
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#output_tokens ⇒ Object
readonly
Returns the value of attribute output_tokens.
-
#tool_calls_count ⇒ Object
readonly
Returns the value of attribute tool_calls_count.
Instance Attribute Details
#cost_usd ⇒ Object (readonly)
Returns the value of attribute cost_usd
20 21 22 |
# File 'lib/rubyn_code/observability/models.rb', line 20 def cost_usd @cost_usd end |
#duration_ms ⇒ Object (readonly)
Returns the value of attribute duration_ms
20 21 22 |
# File 'lib/rubyn_code/observability/models.rb', line 20 def duration_ms @duration_ms end |
#input_tokens ⇒ Object (readonly)
Returns the value of attribute input_tokens
20 21 22 |
# File 'lib/rubyn_code/observability/models.rb', line 20 def input_tokens @input_tokens end |
#model ⇒ Object (readonly)
Returns the value of attribute model
20 21 22 |
# File 'lib/rubyn_code/observability/models.rb', line 20 def model @model end |
#output_tokens ⇒ Object (readonly)
Returns the value of attribute output_tokens
20 21 22 |
# File 'lib/rubyn_code/observability/models.rb', line 20 def output_tokens @output_tokens end |
#tool_calls_count ⇒ Object (readonly)
Returns the value of attribute tool_calls_count
20 21 22 |
# File 'lib/rubyn_code/observability/models.rb', line 20 def tool_calls_count @tool_calls_count end |