Class: LlmCostTracker::CaptureVerifier
- Inherits:
-
Object
- Object
- LlmCostTracker::CaptureVerifier
- Defined in:
- lib/llm_cost_tracker/capture_verifier.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.call ⇒ Object
9 10 11 |
# File 'lib/llm_cost_tracker/capture_verifier.rb', line 9 def call new.checks end |
.healthy?(checks = call) ⇒ Boolean
19 20 21 |
# File 'lib/llm_cost_tracker/capture_verifier.rb', line 19 def healthy?(checks = call) checks.none? { |check| check.status == :error } end |
.report(checks = call) ⇒ Object
13 14 15 16 17 |
# File 'lib/llm_cost_tracker/capture_verifier.rb', line 13 def report(checks = call) (["LLM Cost Tracker capture verification"] + checks.map do |check| "[#{check.status}] #{check.name}: #{check.}" end).join("\n") end |
Instance Method Details
#checks ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/llm_cost_tracker/capture_verifier.rb', line 24 def checks [ enabled_check, *integration_checks, *storage_checks ].compact end |