Class: Brute::Agent
- Inherits:
-
Object
- Object
- Brute::Agent
- Defined in:
- lib/brute/agent.rb
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
-
#system_prompt ⇒ Object
readonly
Returns the value of attribute system_prompt.
-
#tools ⇒ Object
readonly
Returns the value of attribute tools.
Instance Method Summary collapse
-
#initialize(provider:, model:, tools: Brute::Tools::ALL, system_prompt: nil) ⇒ Agent
constructor
A new instance of Agent.
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
#model ⇒ Object (readonly)
Returns the value of attribute model.
5 6 7 |
# File 'lib/brute/agent.rb', line 5 def model @model end |
#provider ⇒ Object (readonly)
Returns the value of attribute provider.
5 6 7 |
# File 'lib/brute/agent.rb', line 5 def provider @provider end |
#system_prompt ⇒ Object (readonly)
Returns the value of attribute system_prompt.
5 6 7 |
# File 'lib/brute/agent.rb', line 5 def system_prompt @system_prompt end |
#tools ⇒ Object (readonly)
Returns the value of attribute tools.
5 6 7 |
# File 'lib/brute/agent.rb', line 5 def tools @tools end |