Module: Datadog::AIGuard::Contrib::RubyLLM::Patcher
- Defined in:
- lib/datadog/ai_guard/contrib/ruby_llm/patcher.rb
Overview
AIGuard patcher module for RubyLLM
Class Method Summary collapse
Class Method Details
.patch ⇒ Object
21 22 23 24 25 |
# File 'lib/datadog/ai_guard/contrib/ruby_llm/patcher.rb', line 21 def patch ::RubyLLM::Chat.prepend(ChatInstrumentation) Patcher.instance_variable_set(:@patched, true) end |
.patched? ⇒ Boolean
13 14 15 |
# File 'lib/datadog/ai_guard/contrib/ruby_llm/patcher.rb', line 13 def patched? !!Patcher.instance_variable_get(:@patched) end |
.target_version ⇒ Object
17 18 19 |
# File 'lib/datadog/ai_guard/contrib/ruby_llm/patcher.rb', line 17 def target_version Integration.version end |