Skip to main content

ExecutorFactory

Workspace API


Workspace API / services/executors/ExecutorFactory

services/executors/ExecutorFactory

Classes

ExecutorFactory

Defined in: services/executors/ExecutorFactory.ts:31

Executor Factory

Always returns VoltAgent executor. Legacy executor routing and shadow mode have been removed.

Constructors

Constructor

new ExecutorFactory(): ExecutorFactory

Defined in: services/executors/ExecutorFactory.ts:34

Returns

ExecutorFactory

Methods

select()

select(skillVersion, orgId): ExecutorSelection

Defined in: services/executors/ExecutorFactory.ts:43

Select an executor for a skill version

Always returns VoltAgent executor.

Parameters
skillVersion

SkillVersion

orgId

string

Returns

ExecutorSelection

getExecutor()

getExecutor(): SkillExecutor

Defined in: services/executors/ExecutorFactory.ts:61

Get the VoltAgent executor

Returns

SkillExecutor

getAvailableExecutors()

getAvailableExecutors(): ExecutorInfo[]

Defined in: services/executors/ExecutorFactory.ts:68

Get available executors

Returns

ExecutorInfo[]

Interfaces

ExecutorSelection

Defined in: services/executors/ExecutorFactory.ts:18

Executor selection result

Properties

executor

executor: SkillExecutor

Defined in: services/executors/ExecutorFactory.ts:20

The selected executor

reason

reason: "voltagent" | "default"

Defined in: services/executors/ExecutorFactory.ts:22

Selection reason

Functions

getExecutorFactory()

getExecutorFactory(): ExecutorFactory

Defined in: services/executors/ExecutorFactory.ts:81

Get the executor factory instance

Returns

ExecutorFactory


selectExecutor()

selectExecutor(skillVersion, orgId): ExecutorSelection

Defined in: services/executors/ExecutorFactory.ts:91

Select an executor for a skill version (convenience function)

Parameters

skillVersion

SkillVersion

orgId

string

Returns

ExecutorSelection