Class: Brute::Agent

Inherits:
Object
  • Object
show all
Defined in:
lib/brute/agent.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(provider:, model:, tools: Brute::Tools::ALL, system_prompt: nil) ⇒ Agent

Returns a new instance of Agent.



7
8
9
10
11
12
# File 'lib/brute/agent.rb', line 7

def initialize(provider:, model:, tools: Brute::Tools::ALL, system_prompt: nil)
  @provider = provider
  @model = model
  @tools = tools
  @system_prompt = system_prompt
end

Instance Attribute Details

#modelObject (readonly)

Returns the value of attribute model.



5
6
7
# File 'lib/brute/agent.rb', line 5

def model
  @model
end

#providerObject (readonly)

Returns the value of attribute provider.



5
6
7
# File 'lib/brute/agent.rb', line 5

def provider
  @provider
end

#system_promptObject (readonly)

Returns the value of attribute system_prompt.



5
6
7
# File 'lib/brute/agent.rb', line 5

def system_prompt
  @system_prompt
end

#toolsObject (readonly)

Returns the value of attribute tools.



5
6
7
# File 'lib/brute/agent.rb', line 5

def tools
  @tools
end