Skip to content

Type Alias: LlamaChatResponseFunctionCall<Functions, FunctionCallName, Params> ​

ts
type LlamaChatResponseFunctionCall<Functions, FunctionCallName, Params> = {
  functionName: FunctionCallName;
  params: Params;
  raw: LlamaTextJSON;
};

Defined in: evaluator/LlamaChat/LlamaChat.ts:1345

Type Parameters ​

Type ParameterDefault type
Functions extends ChatModelFunctions-
FunctionCallName extends keyof Functions & stringstring & keyof Functions
ParamsFunctions[FunctionCallName]["params"] extends undefined | null | void ? undefined : GbnfJsonSchemaToType<Functions[FunctionCallName]["params"]>

Properties ​

functionName ​

ts
functionName: FunctionCallName;

Defined in: evaluator/LlamaChat/LlamaChat.ts:1352


params ​

ts
params: Params;

Defined in: evaluator/LlamaChat/LlamaChat.ts:1353


raw ​

Defined in: evaluator/LlamaChat/LlamaChat.ts:1354