Class: SeedChatWrapper
Defined in: chatWrappers/SeedChatWrapper.ts:12
Extends
Constructors
Constructor
new SeedChatWrapper(options?: {
thinkingBudget?: number | null;
}): SeedChatWrapper;Defined in: chatWrappers/SeedChatWrapper.ts:41
Parameters
| Parameter | Type | Description |
|---|---|---|
options | { thinkingBudget?: number | null; } | - |
options.thinkingBudget? | number | null | The thinking budget to instruct the model to conform to. This is purely a request, the model may ignore it. Set to 0 to instruct the model to not use any reasoning. When set to null, the instruction will be omitted (unlimited reasoning). Defaults to null. |
Returns
SeedChatWrapper
Overrides
Properties
defaultSettings
static defaultSettings: ChatWrapperSettings;Defined in: ChatWrapper.ts:14
Inherited from
wrapperName
readonly wrapperName: string = "Seed";Defined in: chatWrappers/SeedChatWrapper.ts:13
Overrides
thinkingBudget
readonly thinkingBudget: number | null;Defined in: chatWrappers/SeedChatWrapper.ts:15
settings
readonly settings: ChatWrapperSettings;Defined in: chatWrappers/SeedChatWrapper.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
generateFunctionCallResult()
generateFunctionCallResult(
functionName: string,
functionParams: any,
result: any): LlamaText;Defined in: ChatWrapper.ts:124
Parameters
| Parameter | Type |
|---|---|
functionName | string |
functionParams | any |
result | any |
Returns
Inherited from
ChatWrapper.generateFunctionCallResult
generateModelResponseText()
generateModelResponseText(modelResponse: (
| string
| ChatModelFunctionCall
| ChatModelSegment)[], useRawValues?: boolean): LlamaText;Defined in: ChatWrapper.ts:155
Parameters
| Parameter | Type | Default value |
|---|---|---|
modelResponse | ( | string | ChatModelFunctionCall | ChatModelSegment)[] | undefined |
useRawValues | boolean | true |
Returns
Inherited from
ChatWrapper.generateModelResponseText
addAvailableFunctionsSystemMessageToHistory()
addAvailableFunctionsSystemMessageToHistory(
history: readonly ChatHistoryItem[],
availableFunctions?: ChatModelFunctions,
__namedParameters?: {
documentParams?: boolean;
}): readonly ChatHistoryItem[];Defined in: ChatWrapper.ts:264
Parameters
| Parameter | Type |
|---|---|
history | readonly ChatHistoryItem[] |
availableFunctions? | ChatModelFunctions |
__namedParameters? | { documentParams?: boolean; } |
__namedParameters.documentParams? | boolean |
Returns
readonly ChatHistoryItem[]
Inherited from
ChatWrapper.addAvailableFunctionsSystemMessageToHistory
generateInitialChatHistory()
generateInitialChatHistory(__namedParameters?: ChatWrapperGenerateInitialHistoryOptions): ChatHistoryItem[];Defined in: ChatWrapper.ts:285
Parameters
| Parameter | Type |
|---|---|
__namedParameters | ChatWrapperGenerateInitialHistoryOptions |
Returns
Inherited from
ChatWrapper.generateInitialChatHistory
generateContextState()
generateContextState(__namedParameters: ChatWrapperGenerateContextStateOptions): ChatWrapperGeneratedContextState;Defined in: chatWrappers/SeedChatWrapper.ts:64
Parameters
| Parameter | Type |
|---|---|
__namedParameters | ChatWrapperGenerateContextStateOptions |
Returns
ChatWrapperGeneratedContextState
Overrides
ChatWrapper.generateContextState
generateAvailableFunctionsSystemText()
generateAvailableFunctionsSystemText(availableFunctions: ChatModelFunctions, __namedParameters: {
documentParams?: boolean;
}): LlamaText;Defined in: chatWrappers/SeedChatWrapper.ts:170
Parameters
| Parameter | Type |
|---|---|
availableFunctions | ChatModelFunctions |
__namedParameters | { documentParams?: boolean; } |
__namedParameters.documentParams? | boolean |