Class: Esp::Providers::Entry

Inherits:
Struct
  • Object
show all
Defined in:
lib/esp/providers.rb

Overview

‘auto_default` decides whether default_id can pick this provider when no ESP_PROVIDER override is set — false providers (Ollama) require the user to choose explicitly, so a reachable local runtime never masks an un-keyed cloud provider.

Instance Attribute Summary collapse

Instance Attribute Details

#auto_defaultObject

Returns the value of attribute auto_default

Returns:

  • (Object)

    the current value of auto_default



22
23
24
# File 'lib/esp/providers.rb', line 22

def auto_default
  @auto_default
end

#default_modelObject

Returns the value of attribute default_model

Returns:

  • (Object)

    the current value of default_model



22
23
24
# File 'lib/esp/providers.rb', line 22

def default_model
  @default_model
end

#env_keyObject

Returns the value of attribute env_key

Returns:

  • (Object)

    the current value of env_key



22
23
24
# File 'lib/esp/providers.rb', line 22

def env_key
  @env_key
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



22
23
24
# File 'lib/esp/providers.rb', line 22

def id
  @id
end

#klassObject

Returns the value of attribute klass

Returns:

  • (Object)

    the current value of klass



22
23
24
# File 'lib/esp/providers.rb', line 22

def klass
  @klass
end