AnymethodConfig
Defined in: wrapper/src/anymethod.ts:16
Properties
Section titled “Properties”autoParseJSON?
Section titled “autoParseJSON?”
optionalautoParseJSON:boolean
Defined in: wrapper/src/anymethod.ts:24
initialPrompts?
Section titled “initialPrompts?”
optionalinitialPrompts:object[]
Defined in: wrapper/src/anymethod.ts:23
content
Section titled “content”content:
string
role:
"user"|"assistant"|"system"
maxHistorySize?
Section titled “maxHistorySize?”
optionalmaxHistorySize:number
Defined in: wrapper/src/anymethod.ts:22
maxTokens?
Section titled “maxTokens?”
optionalmaxTokens:number
Defined in: wrapper/src/anymethod.ts:21
methodPromptFormatter()?
Section titled “methodPromptFormatter()?”
optionalmethodPromptFormatter: (methodName,args) =>string
Defined in: wrapper/src/anymethod.ts:25
Parameters
Section titled “Parameters”methodName
Section titled “methodName”string
unknown[]
Returns
Section titled “Returns”string
model?
Section titled “model?”
optionalmodel:string
Defined in: wrapper/src/anymethod.ts:17
temperature?
Section titled “temperature?”
optionaltemperature:number
Defined in: wrapper/src/anymethod.ts:18
optionaltopK:number
Defined in: wrapper/src/anymethod.ts:19
optionaltopP:number
Defined in: wrapper/src/anymethod.ts:20