Skip to content

Class: SeedChatWrapper

Defined in: chatWrappers/SeedChatWrapper.ts:12

Extends

Constructors

Constructor

ts
new SeedChatWrapper(options?: {
  thinkingBudget?: number | null;
}): SeedChatWrapper;

Defined in: chatWrappers/SeedChatWrapper.ts:41

Parameters

ParameterTypeDescription
options{ thinkingBudget?: number | null; }-
options.thinkingBudget?number | nullThe 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

ChatWrapper.constructor

Properties

defaultSettings

ts
static defaultSettings: ChatWrapperSettings;

Defined in: ChatWrapper.ts:14

Inherited from

ChatWrapper.defaultSettings


wrapperName

ts
readonly wrapperName: string = "Seed";

Defined in: chatWrappers/SeedChatWrapper.ts:13

Overrides

ChatWrapper.wrapperName


thinkingBudget

ts
readonly thinkingBudget: number | null;

Defined in: chatWrappers/SeedChatWrapper.ts:15


settings

ts
readonly settings: ChatWrapperSettings;

Defined in: chatWrappers/SeedChatWrapper.ts:17

Overrides

ChatWrapper.settings

Methods

generateFunctionCallsAndResults()

ts
generateFunctionCallsAndResults(functionCalls: ChatModelFunctionCall[], useRawCall?: boolean): LlamaText;

Defined in: ChatWrapper.ts:60

Parameters

ParameterTypeDefault value
functionCallsChatModelFunctionCall[]undefined
useRawCallbooleantrue

Returns

LlamaText

Inherited from

ChatWrapper.generateFunctionCallsAndResults


generateFunctionCall()

ts
generateFunctionCall(name: string, params: any): LlamaText;

Defined in: ChatWrapper.ts:107

Parameters

ParameterType
namestring
paramsany

Returns

LlamaText

Inherited from

ChatWrapper.generateFunctionCall


generateFunctionCallResult()

ts
generateFunctionCallResult(
   functionName: string, 
   functionParams: any, 
   result: any): LlamaText;

Defined in: ChatWrapper.ts:124

Parameters

ParameterType
functionNamestring
functionParamsany
resultany

Returns

LlamaText

Inherited from

ChatWrapper.generateFunctionCallResult


generateModelResponseText()

ts
generateModelResponseText(modelResponse: (
  | string
  | ChatModelFunctionCall
  | ChatModelSegment)[], useRawValues?: boolean): LlamaText;

Defined in: ChatWrapper.ts:155

Parameters

ParameterTypeDefault value
modelResponse( | string | ChatModelFunctionCall | ChatModelSegment)[]undefined
useRawValuesbooleantrue

Returns

LlamaText

Inherited from

ChatWrapper.generateModelResponseText


addAvailableFunctionsSystemMessageToHistory()

ts
addAvailableFunctionsSystemMessageToHistory(
   history: readonly ChatHistoryItem[], 
   availableFunctions?: ChatModelFunctions, 
   __namedParameters?: {
  documentParams?: boolean;
}): readonly ChatHistoryItem[];

Defined in: ChatWrapper.ts:264

Parameters

ParameterType
historyreadonly 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:285

Parameters

ParameterType
__namedParametersChatWrapperGenerateInitialHistoryOptions

Returns

ChatHistoryItem[]

Inherited from

ChatWrapper.generateInitialChatHistory


generateContextState()

ts
generateContextState(__namedParameters: ChatWrapperGenerateContextStateOptions): ChatWrapperGeneratedContextState;

Defined in: chatWrappers/SeedChatWrapper.ts:64

Parameters

ParameterType
__namedParametersChatWrapperGenerateContextStateOptions

Returns

ChatWrapperGeneratedContextState

Overrides

ChatWrapper.generateContextState


generateAvailableFunctionsSystemText()

ts
generateAvailableFunctionsSystemText(availableFunctions: ChatModelFunctions, __namedParameters: {
  documentParams?: boolean;
}): LlamaText;

Defined in: chatWrappers/SeedChatWrapper.ts:170

Parameters

ParameterType
availableFunctionsChatModelFunctions
__namedParameters{ documentParams?: boolean; }
__namedParameters.documentParams?boolean

Returns

LlamaText

Overrides

ChatWrapper.generateAvailableFunctionsSystemText