Documentation
Functions
handleFunctionCallMessage

Function: handleFunctionCallMessage()

handleFunctionCallMessage(args): Promise<Msg[]>

Handle messages that require calling functions.

Parameters

ParameterType
argsobject
args.functionCallConcurrency?number
args.functions?AIFunction<ZodObject<any, UnknownKeysParam, ZodTypeAny, object, object>, any>[]
args.messageMsg

Returns

Promise<Msg[]>

An array of the new messages from the function calls Note: Does not include args.message in the returned array

Source

src/prompt/functions/ai-runner.ts:166 (opens in a new tab)