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
65 66 67 |
# File 'lib/llm/sequel/agent.rb', line 65 def agent @agent ||= Class.new(LLM::Agent) end |
#concurrency(concurrency = nil) ⇒ Object
60 61 62 63 |
# File 'lib/llm/sequel/agent.rb', line 60 def concurrency(concurrency = nil) return agent.concurrency if concurrency.nil? agent.concurrency(concurrency) end |
#instructions(instructions = nil) ⇒ Object
55 56 57 58 |
# File 'lib/llm/sequel/agent.rb', line 55 def instructions(instructions = nil) return agent.instructions if instructions.nil? agent.instructions(instructions) end |
#llm_plugin_options ⇒ Object
36 37 38 |
# File 'lib/llm/sequel/agent.rb', line 36 def @llm_agent_options || Agent::DEFAULTS end |
#model(model = nil) ⇒ Object
40 41 42 43 |
# File 'lib/llm/sequel/agent.rb', line 40 def model(model = nil) return agent.model if model.nil? agent.model(model) end |
#schema(schema = nil) ⇒ Object
50 51 52 53 |
# File 'lib/llm/sequel/agent.rb', line 50 def schema(schema = nil) return agent.schema if schema.nil? agent.schema(schema) end |
#tools(*tools) ⇒ Object
45 46 47 48 |
# File 'lib/llm/sequel/agent.rb', line 45 def tools(*tools) return agent.tools if tools.empty? agent.tools(*tools) end |