Module: LlmCostTracker::Storage::CustomBackend

Defined in:
lib/llm_cost_tracker/storage/custom_backend.rb

Class Method Summary collapse

Class Method Details

.save(event, config:) ⇒ Object



7
8
9
10
11
12
# File 'lib/llm_cost_tracker/storage/custom_backend.rb', line 7

def save(event, config:)
  result = config.custom_storage&.call(event)
  return false if result == false

  event
end