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:877

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:884


params

ts
params: Params;

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


raw

ts
raw: LlamaTextJSON;

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