Module: LLM::ActiveRecord::ActsAsAgent::InstanceMethods
- Defined in:
- lib/llm/active_record/acts_as_agent.rb
Instance Method Summary collapse
-
#llm ⇒ LLM::Provider
Returns the resolved provider instance for this record.
- #console(**params) (also: #repl)
Instance Method Details
#llm ⇒ LLM::Provider
Returns the resolved provider instance for this record.
112 113 114 115 116 117 118 |
# File 'lib/llm/active_record/acts_as_agent.rb', line 112 def llm = self.class. return @llm if @llm @llm = Utils.resolve_provider(self, , EMPTY_HASH) @llm.tracer = Utils.resolve_option(self, [:tracer]) if [:tracer] @llm end |
#console(**params) Also known as: repl
Note:
This method does not persist to the database, but it can inspect and alter runtime state in a way that is temporary.
This method returns an undefined value.
127 128 129 |
# File 'lib/llm/active_record/acts_as_agent.rb', line 127 def console(**params) __context__.console(**params) end |