onLLMCallStarting

expect open suspend override fun onLLMCallStarting(eventId: String, executionInfo: AgentExecutionInfo, context: AIAgentContext, runId: String, prompt: Prompt, model: LLModel, tools: List<ToolDescriptor>)(source)

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

Parameters

eventId

The unique identifier for the event group;

executionInfo

The execution information for the LLM call event;

context

The context of the LLM call execution;

runId

The unique identifier for the current run;

prompt

The prompt that will be sent to the language model;

model

The language model instance that will process the request;

tools

The list of tool descriptors available for the LLM call.