Skip to content

AxRouter

Class: AxRouter

Constructors

new AxRouter()

new AxRouter(ai): AxRouter

Parameters

ai: AxAIService

Returns

AxRouter

Defined in

src/ax/dsp/router.ts:35

Methods

forward()

forward(text, options?): Promise<string>

Parameters

text: string

options?: Readonly<AxRouterForwardOptions>

Returns

Promise<string>

Defined in

src/ax/dsp/router.ts:59


getState()

getState(): undefined | AxDBState

Returns

undefined | AxDBState

Defined in

src/ax/dsp/router.ts:40


setOptions()

setOptions(options): void

Parameters

options: Readonly<object>

Returns

void

Defined in

src/ax/dsp/router.ts:94


setRoutes()

setRoutes(routes): Promise<void>

Parameters

routes: readonly AxRoute[]

Returns

Promise<void>

Defined in

src/ax/dsp/router.ts:48


setState()

setState(state): void

Parameters

state: AxDBState

Returns

void

Defined in

src/ax/dsp/router.ts:44