Module: Brute::Turn::Pipeline::Chainable
- Included in:
- Brute::Turn::Pipeline
- Defined in:
- lib/brute/turn/pipeline.rb
Instance Method Summary collapse
-
#on ⇒ Object
Subscribe a lifecycle hook (see Brute::Hooks):.
- #run ⇒ Object
-
#use ⇒ Object
Enables the following syntax:.
Instance Method Details
#on ⇒ Object
Subscribe a lifecycle hook (see Brute::Hooks):
Brute.agent
.use(MaxProfit)
.run(->(env) { ... })
.on(:before_llm) { |env| ... }
.on(:approve_tool) { |call| call[:name] != "exec" }
31 |
# File 'lib/brute/turn/pipeline.rb', line 31 def on(...) = tap { hooks.on(...) } |
#run ⇒ Object
21 |
# File 'lib/brute/turn/pipeline.rb', line 21 def run(...) = tap { super } |