Class: Llmshim::Health

Inherits:
Struct
  • Object
show all
Defined in:
lib/llmshim/types.rb

Overview

The GET /health response.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#providersObject

Returns the value of attribute providers

Returns:

  • (Object)

    the current value of providers



85
86
87
# File 'lib/llmshim/types.rb', line 85

def providers
  @providers
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



85
86
87
# File 'lib/llmshim/types.rb', line 85

def status
  @status
end

Class Method Details

.from_hash(hash) ⇒ Object



86
87
88
# File 'lib/llmshim/types.rb', line 86

def self.from_hash(hash)
  new(status: hash["status"], providers: hash["providers"] || [])
end