Class: Brute::Eval::Budget
- Inherits:
-
Data
- Object
- Data
- Brute::Eval::Budget
- Defined in:
- lib/brute/eval/case.rb
Overview
The budget a case allows itself. Lenient on purpose: an agent that took one search too many is worth knowing about, but it is not the same fault as an agent that answered wrongly.
Instance Attribute Summary collapse
-
#iterations ⇒ Object
readonly
Returns the value of attribute iterations.
-
#seconds ⇒ Object
readonly
Returns the value of attribute seconds.
-
#tokens ⇒ Object
readonly
Returns the value of attribute tokens.
-
#tool_calls ⇒ Object
readonly
Returns the value of attribute tool_calls.
Instance Method Summary collapse
-
#initialize(iterations: 10, tool_calls: 8, tokens: 100_000, seconds: 180) ⇒ Budget
constructor
A new instance of Budget.
Constructor Details
#initialize(iterations: 10, tool_calls: 8, tokens: 100_000, seconds: 180) ⇒ Budget
Returns a new instance of Budget.
12 13 14 |
# File 'lib/brute/eval/case.rb', line 12 def initialize(iterations: 10, tool_calls: 8, tokens: 100_000, seconds: 180) super end |
Instance Attribute Details
#iterations ⇒ Object (readonly)
Returns the value of attribute iterations
11 12 13 |
# File 'lib/brute/eval/case.rb', line 11 def iterations @iterations end |
#seconds ⇒ Object (readonly)
Returns the value of attribute seconds
11 12 13 |
# File 'lib/brute/eval/case.rb', line 11 def seconds @seconds end |
#tokens ⇒ Object (readonly)
Returns the value of attribute tokens
11 12 13 |
# File 'lib/brute/eval/case.rb', line 11 def tokens @tokens end |
#tool_calls ⇒ Object (readonly)
Returns the value of attribute tool_calls
11 12 13 |
# File 'lib/brute/eval/case.rb', line 11 def tool_calls @tool_calls end |