Methods
addChat
- addChat(chat): this
Parameters
- chat: Readonly<Readonly<{
content: string;
role: "system";
} | {
content: string;
name?: string;
role: "user";
} | {
content: null | string;
functionCalls?: {
function: {
arguments?: string | object;
name: string;
};
id: string;
type: "function";
}[];
name?: string;
role: "assistant";
} | {
content: string;
functionId: string;
role: "function";
}>>
Returns this
setFunctionCall
- setFunctionCall(functionCall): TextRequestBuilder
Parameters
- functionCall: Readonly<undefined | "none" | {
function: {
name: string;
};
type: "function";
} | "auto">
setIdentity
- setIdentity(identity?): this
Returns this