Module: Brute::Patches::AnthropicToolRole

Defined in:
lib/brute/patches/anthropic_tool_role.rb

Class Method Summary collapse

Class Method Details

.apply!Object

Apply the patch lazily — LLM::Anthropic is autoloaded.



28
29
30
31
32
# File 'lib/brute/patches/anthropic_tool_role.rb', line 28

def self.apply!
  return if @applied
  @applied = true
  LLM::Anthropic::RequestAdapter::Completion.prepend(self)
end