Skip to content

FunctionModelHandler

FunctionModelHandler = (messages, info) => ModelResponse | Promise<ModelResponse>

Handler function for FunctionModel. Receives conversation context and returns a model response.

Message[]

number

FunctionModelToolDef[]

ModelResponse | Promise<ModelResponse>