Class: LLM::Intercept::Null

Inherits:
LLM::Intercept show all
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.

See Also:

Instance Attribute Summary

Attributes inherited from LLM::Intercept

#llm

Instance Method Summary collapse

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.

Parameters:

  • function (LLM::Function) —

    A pending function

  • opts (Hash) —

    The contents of intercept_options:

Returns:

  • (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. 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