onAfterLLMCall
Append handler called after a response is received from the language model.
Deprecated
Please use onAfterLLMCall() instead
Replace with
onAfterLLMCall(handler)
A deprecated property to handle events triggered after a response is received from the language model (LLM).
Use the onAfterLLMCall(handler: suspend (prompt, tools, model, responses, sessionUuid) -> Unit)
method instead.
The handler is a suspending function that is executed after an LLM call and receives the following parameters:
prompt
: The prompt that was sent to the language model.tools
: A list of available tool descriptors.model
: The language model instance that processed the request.responses
: A list of responses returned by the language model.sessionUuid
: The unique identifier for the session in which this call occurred.
Updating this property will automatically delegate to the newer onAfterLLMCall
method.