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