Module: LLM::Sequel::Agent::ClassMethods
- Defined in:
- lib/llm/sequel/agent.rb
Instance Method Summary collapse
- #agent ⇒ Object
- #model(model = nil, &block) ⇒ Object
- #tools(*tools, &block) ⇒ Object
- #skills(*skills, &block) ⇒ Object
- #schema(schema = nil, &block) ⇒ Object
- #instructions(instructions = nil) ⇒ Object
- #concurrency(concurrency = nil) ⇒ Object
- #confirm(*tool_names, &block) ⇒ Object
- #tracer(tracer = nil, &block) ⇒ Object
- #llm_plugin_options ⇒ Object
Instance Method Details
#agent ⇒ Object
76 77 78 |
# File 'lib/llm/sequel/agent.rb', line 76 def agent @agent ||= Class.new(LLM::Agent) end |
#model(model = nil, &block) ⇒ Object
36 37 38 39 |
# File 'lib/llm/sequel/agent.rb', line 36 def model(model = nil, &block) return agent.model if model.nil? && !block agent.model(model, &block) end |
#tools(*tools, &block) ⇒ Object
41 42 43 44 |
# File 'lib/llm/sequel/agent.rb', line 41 def tools(*tools, &block) return agent.tools if tools.empty? && !block agent.tools(*tools, &block) end |
#skills(*skills, &block) ⇒ Object
46 47 48 49 |
# File 'lib/llm/sequel/agent.rb', line 46 def skills(*skills, &block) return agent.skills if skills.empty? && !block agent.skills(*skills, &block) end |
#schema(schema = nil, &block) ⇒ Object
51 52 53 54 |
# File 'lib/llm/sequel/agent.rb', line 51 def schema(schema = nil, &block) return agent.schema if schema.nil? && !block agent.schema(schema, &block) end |
#instructions(instructions = nil) ⇒ Object
56 57 58 59 |
# File 'lib/llm/sequel/agent.rb', line 56 def instructions(instructions = nil) return agent.instructions if instructions.nil? agent.instructions(instructions) end |
#concurrency(concurrency = nil) ⇒ Object
61 62 63 64 |
# File 'lib/llm/sequel/agent.rb', line 61 def concurrency(concurrency = nil) return agent.concurrency if concurrency.nil? agent.concurrency(concurrency) end |
#confirm(*tool_names, &block) ⇒ Object
66 67 68 69 |
# File 'lib/llm/sequel/agent.rb', line 66 def confirm(*tool_names, &block) return agent.confirm if tool_names.empty? && !block agent.confirm(*tool_names, &block) end |
#tracer(tracer = nil, &block) ⇒ Object
71 72 73 74 |
# File 'lib/llm/sequel/agent.rb', line 71 def tracer(tracer = nil, &block) return agent.tracer if tracer.nil? && !block agent.tracer(tracer, &block) end |