Skip to content

Type Alias: LlamaChatResponseFunctionCall<Functions, FunctionCallName, Params>

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

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"]>

Type declaration

functionName

ts
functionName: FunctionCallName;

params

ts
params: Params;

raw

ts
raw: LlamaTextJSON;

Defined in

evaluator/LlamaChat/LlamaChat.ts:753