Type Alias: LlamaChatResponseFunctionCallParamsChunk
type LlamaChatResponseFunctionCallParamsChunk = {
callIndex: number;
functionName: string;
paramsChunk: string;
done: boolean;
};
Defined in: evaluator/LlamaChat/LlamaChat.ts:108
Properties
callIndex
callIndex: number;
Defined in: evaluator/LlamaChat/LlamaChat.ts:116
Each different function call has a different callIndex
.
When the previous function call has finished being generated, the callIndex
of the next one will increment.
Use this value to distinguish between different function calls.
functionName
functionName: string;
Defined in: evaluator/LlamaChat/LlamaChat.ts:121
The name of the function being called
paramsChunk
paramsChunk: string;
Defined in: evaluator/LlamaChat/LlamaChat.ts:131
A chunk of the generated text used for the function call parameters.
Collect all the chunks together to construct the full function call parameters.
After the function call is finished, the entire constructed params text can be parsed as a JSON object, according to the function parameters schema.
done
done: boolean;
Defined in: evaluator/LlamaChat/LlamaChat.ts:136
When this is true
, the current chunk is the last chunk in the generation of the current function call parameters.