Class: FlowEngine::LLM::Provider

Inherits:
Data
  • Object
show all
Defined in:
lib/flowengine/llm/provider.rb

Overview

Immutable data class representing an LLM provider configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#adapter_class ⇒ Object (readonly)

Returns the value of attribute adapter_class

Returns:

  • (Object) —

    the current value of adapter_class



6
7
8
# File 'lib/flowengine/llm/provider.rb', line 6

def adapter_class
  @adapter_class
end

#env_var ⇒ Object (readonly)

Returns the value of attribute env_var

Returns:

  • (Object) —

    the current value of env_var



6
7
8
# File 'lib/flowengine/llm/provider.rb', line 6

def env_var
  @env_var
end

#name ⇒ Object (readonly)

Returns the value of attribute name

Returns:

  • (Object) —

    the current value of name



6
7
8
# File 'lib/flowengine/llm/provider.rb', line 6

def name
  @name
end

Instance Method Details

#available? ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/flowengine/llm/provider.rb', line 7

def available?
  !ENV.fetch(env_var, nil).nil?
end