Class: LLM::MessageFilter::Null

Inherits:
LLM::MessageFilter show all
Defined in:
lib/llm/message_filter/null.rb

Overview

An LLM::MessageFilter::Null is a filter that does nothing. It is used as the default when no filter strategy is configured.

It returns the given message unchanged.

Instance Attribute Summary

Attributes inherited from LLM::MessageFilter

#ctx

Instance Method Summary collapse

Methods inherited from LLM::MessageFilter

inherited, #initialize, multi

Constructor Details

This class inherits a constructor from LLM::MessageFilter

Instance Method Details

#call(message:, **opts) ⇒ LLM::Message

Parameters:

  • message (LLM::Message) —

    The message to filter

  • opts (Hash) —

    Ignored

Returns:



17
18
19
# File 'lib/llm/message_filter/null.rb', line 17

def call(message:, **opts)
  message
end