BeforeLLMCallHandler
A functional interface implemented to handle logic that occurs before invoking a large language model (LLM). It allows preprocessing steps or validation based on the provided prompt, available tools, targeted LLM model, and a unique run identifier.
This can be particularly useful for custom input manipulation, logging, validation, or applying configurations to the LLM request based on external context.