Class: EmptyChatWrapper
Defined in: chatWrappers/EmptyChatWrapper.ts:3
Extends
Constructors
new EmptyChatWrapper()
ts
new EmptyChatWrapper(): EmptyChatWrapper
Returns
Inherited from
Properties
defaultSettings
ts
static defaultSettings: ChatWrapperSettings;
Defined in: ChatWrapper.ts:11
Inherited from
settings
ts
readonly settings: ChatWrapperSettings = ChatWrapper.defaultSettings;
Defined in: ChatWrapper.ts:28
Inherited from
wrapperName
ts
readonly wrapperName: string = "Empty";
Defined in: chatWrappers/EmptyChatWrapper.ts:4
Overrides
Methods
generateContextState()
ts
generateContextState(__namedParameters: ChatWrapperGenerateContextStateOptions): ChatWrapperGeneratedContextState
Defined in: ChatWrapper.ts:30
Parameters
Parameter | Type |
---|---|
__namedParameters | ChatWrapperGenerateContextStateOptions |
Returns
ChatWrapperGeneratedContextState
Inherited from
ChatWrapper
.generateContextState
generateFunctionCallsAndResults()
ts
generateFunctionCallsAndResults(functionCalls: ChatModelFunctionCall[], useRawCall: boolean): LlamaText
Defined in: ChatWrapper.ts:55
Parameters
Parameter | Type | Default value |
---|---|---|
functionCalls | ChatModelFunctionCall [] | undefined |
useRawCall | boolean | true |
Returns
Inherited from
ChatWrapper
.generateFunctionCallsAndResults
generateFunctionCall()
ts
generateFunctionCall(name: string, params: any): LlamaText
Defined in: ChatWrapper.ts:102
Parameters
Parameter | Type |
---|---|
name | string |
params | any |
Returns
Inherited from
ChatWrapper
.generateFunctionCall
generateFunctionCallResult()
ts
generateFunctionCallResult(
functionName: string,
functionParams: any,
result: any): LlamaText
Defined in: ChatWrapper.ts:116
Parameters
Parameter | Type |
---|---|
functionName | string |
functionParams | any |
result | any |
Returns
Inherited from
ChatWrapper
.generateFunctionCallResult
generateModelResponseText()
ts
generateModelResponseText(modelResponse: (
| string
| ChatModelFunctionCall)[], useRawCall: boolean): LlamaText
Defined in: ChatWrapper.ts:140
Parameters
Parameter | Type | Default value |
---|---|---|
modelResponse | ( | string | ChatModelFunctionCall )[] | undefined |
useRawCall | boolean | true |
Returns
Inherited from
ChatWrapper
.generateModelResponseText
generateAvailableFunctionsSystemText()
ts
generateAvailableFunctionsSystemText(availableFunctions: ChatModelFunctions, __namedParameters: {
documentParams: boolean;
}): LlamaText
Defined in: ChatWrapper.ts:170
Parameters
Parameter | Type |
---|---|
availableFunctions | ChatModelFunctions |
__namedParameters | { documentParams : boolean ; } |
__namedParameters.documentParams ? | boolean |
Returns
Inherited from
ChatWrapper
.generateAvailableFunctionsSystemText
addAvailableFunctionsSystemMessageToHistory()
ts
addAvailableFunctionsSystemMessageToHistory(
history: readonly ChatHistoryItem[],
availableFunctions?: ChatModelFunctions,
__namedParameters?: {
documentParams: boolean;
}): readonly ChatHistoryItem[]
Defined in: ChatWrapper.ts:196
Parameters
Parameter | Type |
---|---|
history | readonly ChatHistoryItem [] |
availableFunctions ? | ChatModelFunctions |
__namedParameters ? | { documentParams : boolean ; } |
__namedParameters.documentParams ? | boolean |
Returns
readonly ChatHistoryItem
[]
Inherited from
ChatWrapper
.addAvailableFunctionsSystemMessageToHistory
generateInitialChatHistory()
ts
generateInitialChatHistory(__namedParameters: ChatWrapperGenerateInitialHistoryOptions): ChatHistoryItem[]
Defined in: ChatWrapper.ts:217
Parameters
Parameter | Type |
---|---|
__namedParameters | ChatWrapperGenerateInitialHistoryOptions |