LLM Plugin Protocol • Rust AI Agent SDK

LLMPluginProtocol: LLM call hook plugin protocol

LLMPluginProtocol

Defined in the plugins module.

Rust AI Agent SDK

LLM call hook plugin protocol

Methods

before_llm_call

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

Called before LLM call

Parameters:

NameType
_messages&[LLMMessage]

Source

View on GitHub

praisonai/src/parity/plugins.rs at line 0


Related Documentation