Skip to content

remote / Exports / RemoteExecutor

Class: RemoteExecutor

Simple RemoteExecutor using atomic components Implements IExecutor for full compatibility with LocalExecutor

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new RemoteExecutor(config): RemoteExecutor

Parameters

NameType
configISimpleRemoteConfig

Returns

RemoteExecutor

Defined in

remote/src/client/remote-executor-simple.ts:53

Properties

name

Readonly name: "remote"

Get executor name/identifier

Implementation of

IExecutor.name

Defined in

remote/src/client/remote-executor-simple.ts:46


version

Readonly version: "1.0.0"

Get executor version

Implementation of

IExecutor.version

Defined in

remote/src/client/remote-executor-simple.ts:47

Methods

executeChat

executeChat(request): Promise<IAssistantMessage>

Execute chat request (IExecutor compatible)

Parameters

NameType
requestIChatExecutionRequest

Returns

Promise<IAssistantMessage>

Implementation of

IExecutor.executeChat

Defined in

remote/src/client/remote-executor-simple.ts:79


executeChatStream

executeChatStream(request): AsyncIterable<TUniversalMessage, any, any>

Execute streaming chat completion

Parameters

NameType
requestIStreamExecutionRequest

Returns

AsyncIterable<TUniversalMessage, any, any>

Implementation of

IExecutor.executeChatStream

Defined in

remote/src/client/remote-executor-simple.ts:109


supportsTools

supportsTools(): boolean

Check if the executor supports tool calling (IExecutor requirement)

Returns

boolean

Implementation of

IExecutor.supportsTools

Defined in

remote/src/client/remote-executor-simple.ts:152


validateConfig

validateConfig(): boolean

Validate executor configuration (IExecutor requirement)

Returns

boolean

Implementation of

IExecutor.validateConfig

Defined in

remote/src/client/remote-executor-simple.ts:159


dispose

dispose(): Promise<void>

Clean up resources (IExecutor requirement)

Returns

Promise<void>

Implementation of

IExecutor.dispose

Defined in

remote/src/client/remote-executor-simple.ts:172

Released under the MIT License.