Type Alias: LlamaChatResponseFunctionCall<Functions, FunctionCallName, Params>
ts
type LlamaChatResponseFunctionCall<Functions, FunctionCallName, Params>: {
functionName: FunctionCallName;
params: Params;
raw: LlamaTextJSON;
};
Type Parameters
Type Parameter | Default type |
---|---|
Functions extends ChatModelFunctions | - |
FunctionCallName extends keyof Functions & string | string & keyof Functions |
Params | Functions [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;