AfterLLMCallHandler

Represents a functional interface for handling operations or logic that should occur after a call to a large language model (LLM) is made. The implementation of this interface provides a mechanism to perform custom logic or processing based on the provided inputs, such as the prompt, tools, model, and generated responses.

Functions

Link copied to clipboard
abstract suspend fun handle(eventContext: AfterLLMCallContext)

Handles the post-processing of a prompt and its associated data after a language model call.