Class: Mildred::Agent
- Inherits:
-
RubyLLM::Agent
- Object
- RubyLLM::Agent
- Mildred::Agent
- Defined in:
- lib/mildred/agent.rb
Class Method Summary collapse
Class Method Details
.build ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/mildred/agent.rb', line 22 def self.build model_id = Mildred.configuration.model provider = Mildred.configuration.provider.to_sym chat = RubyLLM.chat( model: model_id, provider: provider, assume_model_exists: true ) new(chat: chat) end |