Skip to main content

before_llm_call

Method
This is a method of the LLMPluginProtocol class in the plugins module.
Called before LLM call

Signature

def before_llm_call(&self, _messages: &[LLMMessage]) -> Result<Option<Vec<LLMMessage>>, String>

Parameters

_messages
&
required
No description available.

Returns

Returns
Result<Option<Vec<LLMMessage>>, String>
The result of the operation.