Class: FlowEngine::LLM::Provider
- Inherits:
-
Data
- Object
- Data
- FlowEngine::LLM::Provider
- Defined in:
- lib/flowengine/llm/provider.rb
Overview
Immutable data class representing an LLM provider configuration.
Instance Attribute Summary collapse
-
#adapter_class ⇒ Object
readonly
Returns the value of attribute adapter_class.
-
#env_var ⇒ Object
readonly
Returns the value of attribute env_var.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#adapter_class ⇒ Object (readonly)
Returns the value of attribute 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
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
6 7 8 |
# File 'lib/flowengine/llm/provider.rb', line 6 def name @name end |
Instance Method Details
#available? ⇒ Boolean
7 8 9 |
# File 'lib/flowengine/llm/provider.rb', line 7 def available? !ENV.fetch(env_var, nil).nil? end |