onLLMFunctionCall

fun onLLMFunctionCall(func: LLMFunctionCall, onResult: (Value) -> Unit)

Invoked when the LLM attempts to invoke a function. The provided callback must be provided with a return value.

Parameters

func

Details of the function call

onResult

Invoke this callback to provide a return value to the LLM