FunctionCallHandler

class FunctionCallHandler(functions: List<LLMFunction>, eventHandler: EventPublisher?, functionCallLimit: Int = 60)

Finds function calls in ChatCompletions and calls the callback function if any are found.

Constructors

Link copied to clipboard
constructor(functions: List<LLMFunction>, eventHandler: EventPublisher?, functionCallLimit: Int = 60)

Properties

Link copied to clipboard
val calledFunctions: Map<String, LLMFunction>

Functions

Link copied to clipboard
Link copied to clipboard
suspend fun handle(assistantMessage: AiMessage): Result<List<ChatMessage>, ArcException>