Class: LLM::Intercept::Null
- Inherits:
-
LLM::Intercept
- Object
- LLM::Intercept
- LLM::Intercept::Null
- Defined in:
- lib/llm/intercept/null.rb
Overview
The LLM::Intercept::Null class is the default intercept, and it does nothing but allow the tool call through.
Instance Attribute Summary
Attributes inherited from LLM::Intercept
Instance Method Summary collapse
-
#call(function:, **opts) ⇒ LLM::Function::Return, Object
When this method returns a LLM::Function::Return, object it stops a tool call in its tracks and the Return object is the answer we give to the model for the tool call that was stopped.
Methods inherited from LLM::Intercept
inherited, #initialize, multi, #options
Constructor Details
This class inherits a constructor from LLM::Intercept
Instance Method Details
#call(function:, **opts) ⇒ LLM::Function::Return, Object
Returns When this method returns a LLM::Function::Return, object it stops a tool call in its tracks and the Return object is the answer we give to the model for the tool call that was stopped. Any other return value lets the tool call through.
14 15 16 |
# File 'lib/llm/intercept/null.rb', line 14 def call(function:, **opts) nil end |