onAfterLLMCall

suspend fun onAfterLLMCall(runId: String, prompt: Prompt, model: LLModel, tools: List<ToolDescriptor>, responses: List<Message.Response>, moderationResponse: ModerationResult? = null)(source)

Notifies all registered LLM handlers after a language model call has completed.

Parameters

runId

Identifier for the current run.

prompt

The prompt that was sent to the language model

tools

The list of tool descriptors that were available for the LLM call

model

The language model instance that processed the request

responses

The response messages received from the language model