onBeforeLLMCall

suspend fun onBeforeLLMCall(runId: String, prompt: Prompt, model: LLModel, tools: List<ToolDescriptor>)(source)

Notifies all registered LLM handlers before a language model call is made.

Parameters

prompt

The prompt that will be sent to the language model

tools

The list of tool descriptors available for the LLM call

model

The language model instance that will process the request