Skip to content

core / Exports / FunctionCallManager

Class: FunctionCallManager

Function call management class Manages function call settings and modes.

Table of contents

Constructors

Methods

Constructors

constructor

new FunctionCallManager(initialConfig?): FunctionCallManager

Parameters

NameType
initialConfig?FunctionCallConfig

Returns

FunctionCallManager

Defined in

managers/function-call-manager.ts:28

Methods

setFunctionCallMode

setFunctionCallMode(mode): void

Set function call mode

Parameters

NameTypeDescription
modeFunctionCallModeFunction call mode ('auto', 'force', 'disabled')

Returns

void

Defined in

managers/function-call-manager.ts:42


configure

configure(config): void

Configure function call settings

Parameters

NameTypeDescription
configObjectFunction call configuration options
config.mode?FunctionCallMode-
config.maxCalls?number-
config.timeout?number-
config.allowedFunctions?string[]-

Returns

void

Defined in

managers/function-call-manager.ts:51


getDefaultMode

getDefaultMode(): FunctionCallMode

Get current function call mode

Returns

FunctionCallMode

Defined in

managers/function-call-manager.ts:74


getMaxCalls

getMaxCalls(): number

Get maximum call count

Returns

number

Defined in

managers/function-call-manager.ts:81


getTimeout

getTimeout(): number

Get timeout setting

Returns

number

Defined in

managers/function-call-manager.ts:88


getAllowedFunctions

getAllowedFunctions(): undefined | string[]

Get allowed functions list

Returns

undefined | string[]

Defined in

managers/function-call-manager.ts:95


getConfig

getConfig(): FunctionCallConfig

Get complete configuration

Returns

FunctionCallConfig

Defined in

managers/function-call-manager.ts:102


isFunctionAllowed

isFunctionAllowed(functionName): boolean

Check if a specific function is allowed

Parameters

NameTypeDescription
functionNamestringFunction name to check

Returns

boolean

Defined in

managers/function-call-manager.ts:111

Released under the MIT License.