Class: MistralChatWrapper
Defined in: chatWrappers/MistralChatWrapper.ts:14
Extends
Constructors
new MistralChatWrapper()
new MistralChatWrapper(options: {
addSpaceBeforeEos: boolean;
}): MistralChatWrapper
Defined in: chatWrappers/MistralChatWrapper.ts:22
Parameters
Parameter | Type | Description |
---|---|---|
options | { addSpaceBeforeEos : boolean ; } | - |
options.addSpaceBeforeEos ? | boolean | Default to true |
Returns
MistralChatWrapper
Overrides
Properties
defaultSettings
static defaultSettings: ChatWrapperSettings;
Defined in: ChatWrapper.ts:14
Inherited from
wrapperName
readonly wrapperName: string = "Mistral";
Defined in: chatWrappers/MistralChatWrapper.ts:15
Overrides
settings
readonly settings: ChatWrapperSettings;
Defined in: chatWrappers/MistralChatWrapper.ts:17
Overrides
Methods
generateFunctionCallsAndResults()
generateFunctionCallsAndResults(functionCalls: ChatModelFunctionCall[], useRawCall: boolean): LlamaText
Defined in: ChatWrapper.ts:60
Parameters
Parameter | Type | Default value |
---|---|---|
functionCalls | ChatModelFunctionCall [] | undefined |
useRawCall | boolean | true |
Returns
Inherited from
ChatWrapper
.generateFunctionCallsAndResults
generateFunctionCall()
generateFunctionCall(name: string, params: any): LlamaText
Defined in: ChatWrapper.ts:107
Parameters
Parameter | Type |
---|---|
name | string |
params | any |
Returns
Inherited from
ChatWrapper
.generateFunctionCall
generateModelResponseText()
generateModelResponseText(modelResponse: (
| string
| ChatModelFunctionCall
| ChatModelSegment)[], useRawValues: boolean): LlamaText
Defined in: ChatWrapper.ts:148
Parameters
Parameter | Type | Default value |
---|---|---|
modelResponse | ( | string | ChatModelFunctionCall | ChatModelSegment )[] | undefined |
useRawValues | boolean | true |
Returns
Inherited from
ChatWrapper
.generateModelResponseText
generateAvailableFunctionsSystemText()
generateAvailableFunctionsSystemText(availableFunctions: ChatModelFunctions, __namedParameters: {
documentParams: boolean;
}): LlamaText
Defined in: ChatWrapper.ts:231
Parameters
Parameter | Type |
---|---|
availableFunctions | ChatModelFunctions |
__namedParameters | { documentParams : boolean ; } |
__namedParameters.documentParams ? | boolean |
Returns
Inherited from
ChatWrapper
.generateAvailableFunctionsSystemText
addAvailableFunctionsSystemMessageToHistory()
addAvailableFunctionsSystemMessageToHistory(history: readonly ChatHistoryItem[]): readonly ChatHistoryItem[]
Defined in: chatWrappers/MistralChatWrapper.ts:70
Parameters
Parameter | Type |
---|---|
history | readonly ChatHistoryItem [] |
Returns
readonly ChatHistoryItem
[]
Overrides
ChatWrapper
.addAvailableFunctionsSystemMessageToHistory
generateContextState()
generateContextState(__namedParameters: ChatWrapperGenerateContextStateOptions): ChatWrapperGeneratedContextState
Defined in: chatWrappers/MistralChatWrapper.ts:74
Parameters
Parameter | Type |
---|---|
__namedParameters | ChatWrapperGenerateContextStateOptions |
Returns
ChatWrapperGeneratedContextState
Overrides
ChatWrapper
.generateContextState
generateInitialChatHistory()
generateInitialChatHistory(__namedParameters: ChatWrapperGenerateInitialHistoryOptions): ChatHistoryItem[]
Defined in: chatWrappers/MistralChatWrapper.ts:149
Parameters
Parameter | Type |
---|---|
__namedParameters | ChatWrapperGenerateInitialHistoryOptions |
Returns
Overrides
ChatWrapper
.generateInitialChatHistory
generateFunctionCallResult()
generateFunctionCallResult(
functionName: string,
functionParams: any,
result: any): LlamaText
Defined in: chatWrappers/MistralChatWrapper.ts:161
Parameters
Parameter | Type |
---|---|
functionName | string |
functionParams | any |
result | any |