Module: LlmCostTracker::Ledger::Schema::Calls
- Defined in:
- lib/llm_cost_tracker/ledger/schema/calls.rb
Constant Summary collapse
- CURRENT_SCHEMA_COLUMNS =
%w[ event_id provider model input_tokens output_tokens total_tokens cache_read_input_tokens cache_write_input_tokens cache_write_1h_input_tokens hidden_output_tokens input_cost output_cost total_cost cache_read_input_cost cache_write_input_cost cache_write_1h_input_cost latency_ms stream usage_source provider_response_id pricing_mode tags tracked_at ].freeze
Class Method Summary collapse
Class Method Details
.current_schema? ⇒ Boolean
36 37 38 |
# File 'lib/llm_cost_tracker/ledger/schema/calls.rb', line 36 def current_schema? current_schema_errors.empty? end |
.current_schema_errors ⇒ Object
40 41 42 |
# File 'lib/llm_cost_tracker/ledger/schema/calls.rb', line 40 def current_schema_errors schema_capabilities.fetch(:current_schema_errors) end |
.missing_current_schema_columns ⇒ Object
44 45 46 |
# File 'lib/llm_cost_tracker/ledger/schema/calls.rb', line 44 def missing_current_schema_columns schema_capabilities.fetch(:missing_current_schema_columns) end |