Class: LlmCostTracker::CaptureVerifier

Inherits:
Object
  • Object
show all
Defined in:
lib/llm_cost_tracker/capture_verifier.rb

Defined Under Namespace

Classes: Check

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.callObject



10
# File 'lib/llm_cost_tracker/capture_verifier.rb', line 10

def call = new.checks

.healthy?(checks = call) ⇒ Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/llm_cost_tracker/capture_verifier.rb', line 16

def healthy?(checks = call)
  checks.none? { |check| check.status == :error }
end

.report(checks = call) ⇒ Object



12
13
14
# File 'lib/llm_cost_tracker/capture_verifier.rb', line 12

def report(checks = call)
  (["LLM Cost Tracker capture verification"] + checks.map { |check| format_check(check) }).join("\n")
end

Instance Method Details

#checksObject



27
28
29
30
31
32
33
# File 'lib/llm_cost_tracker/capture_verifier.rb', line 27

def checks
  [
    enabled_check,
    *integration_checks,
    *storage_checks
  ].compact
end