Before LLM Call • Rust AI Agent SDK

before_llm_call: Called before LLM call

before_llm_call

Method

</div>

This is a method of the LLMPluginProtocol class in the plugins module.

Called before LLM call

Signature

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

Parameters

ParamField &[LLMMessage]

No description available.

Returns

Rust LLM Rust Providers Rust Failover