Module: Brute::Completion
- Defined in:
- lib/brute/completion/open_router.rb
Overview
Completion middlewares — the terminal step of an agent turn. Each one is a
ready-made replacement for the hand-written run proc: it takes
env, calls one provider, and appends the reply back onto the log.
Brute.agent
.use(Brute::Middleware::SystemPrompt)
.run(Brute::Completion::OpenRouter.new(model: "anthropic/claude-sonnet-4"))
Brute still owns no LLM library: each class here requires only the gem for its own provider, and only when you use it.
Defined Under Namespace
Classes: OpenRouter