Module: LLM::Sequel::Agent::ClassMethods
- Defined in:
- lib/llm/sequel/agent.rb
Instance Method Summary collapse
- #agent ⇒ Object
- #concurrency(concurrency = nil) ⇒ Object
- #instructions(instructions = nil) ⇒ Object
- #llm_plugin_options ⇒ Object
- #model(model = nil) ⇒ Object
- #schema(schema = nil) ⇒ Object
- #tools(*tools) ⇒ Object
Instance Method Details
#agent ⇒ Object
63 64 65 |
# File 'lib/llm/sequel/agent.rb', line 63 def agent @agent ||= Class.new(LLM::Agent) end |
#concurrency(concurrency = nil) ⇒ Object
58 59 60 61 |
# File 'lib/llm/sequel/agent.rb', line 58 def concurrency(concurrency = nil) return agent.concurrency if concurrency.nil? agent.concurrency(concurrency) end |
#instructions(instructions = nil) ⇒ Object
53 54 55 56 |
# File 'lib/llm/sequel/agent.rb', line 53 def instructions(instructions = nil) return agent.instructions if instructions.nil? agent.instructions(instructions) end |
#llm_plugin_options ⇒ Object
34 35 36 |
# File 'lib/llm/sequel/agent.rb', line 34 def @llm_agent_options || Agent::DEFAULTS end |
#model(model = nil) ⇒ Object
38 39 40 41 |
# File 'lib/llm/sequel/agent.rb', line 38 def model(model = nil) return agent.model if model.nil? agent.model(model) end |
#schema(schema = nil) ⇒ Object
48 49 50 51 |
# File 'lib/llm/sequel/agent.rb', line 48 def schema(schema = nil) return agent.schema if schema.nil? agent.schema(schema) end |
#tools(*tools) ⇒ Object
43 44 45 46 |
# File 'lib/llm/sequel/agent.rb', line 43 def tools(*tools) return agent.tools if tools.empty? agent.tools(*tools) end |