Module: LLM::Sequel::Agent::ClassMethods

Defined in:
lib/llm/sequel/agent.rb

Instance Method Summary collapse

Instance Method Details

#agentObject



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_optionsObject



34
35
36
# File 'lib/llm/sequel/agent.rb', line 34

def llm_plugin_options
  @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