Class: Intelligent::Llm::Base
- Inherits:
-
Object
- Object
- Intelligent::Llm::Base
- Defined in:
- lib/intelligent/llm/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
Instance Method Summary collapse
- #generate(prompt_content, files = []) ⇒ Object
-
#initialize(provider: "anthropic", model: "claude-sonnet-4-20250514") ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(provider: "anthropic", model: "claude-sonnet-4-20250514") ⇒ Base
Returns a new instance of Base.
6 7 8 9 |
# File 'lib/intelligent/llm/base.rb', line 6 def initialize(provider: "anthropic", model: "claude-sonnet-4-20250514") @provider = provider @model = model end |
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model.
4 5 6 |
# File 'lib/intelligent/llm/base.rb', line 4 def model @model end |
#provider ⇒ Object (readonly)
Returns the value of attribute provider.
4 5 6 |
# File 'lib/intelligent/llm/base.rb', line 4 def provider @provider end |
Instance Method Details
#generate(prompt_content, files = []) ⇒ Object
11 12 13 |
# File 'lib/intelligent/llm/base.rb', line 11 def generate(prompt_content, files = []) raise NotImplementedError, "Subclasses must implement generate method" end |