AxEventRuntime Generated TypeScript API reference. typescript api api/reference build/apidocs/Class.AxEventRuntime.md class AxEventRuntime

AxEventRuntime

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/runtime.ts#L128

Constructors

Constructor

TypeScript
new AxEventRuntime(options: Readonly<AxEventRuntimeOptions>): AxEventRuntime;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/runtime.ts#L146

Parameters

ParameterType
optionsReadonly<AxEventRuntimeOptions>

Returns

AxEventRuntime

Properties

PropertyModifierType
idreadonlystring

Methods

cancelRun()

TypeScript
cancelRun(runId: string, reason: string): boolean;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/runtime.ts#L346

Parameters

ParameterTypeDefault value
runIdstringundefined
reasonstring'Cancelled by caller'

Returns

boolean


close()

TypeScript
close(options: Readonly<AxEventCloseOptions>): Promise<void>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/runtime.ts#L365

Parameters

ParameterType
optionsReadonly<AxEventCloseOptions>

Returns

Promise<void>


getRun()

TypeScript
getRun(runId: string): Promise<
  | undefined
| Readonly<AxEventRun<unknown>>>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/runtime.ts#L293

Parameters

ParameterType
runIdstring

Returns

Promise< | undefined | Readonly<AxEventRun<unknown>>>


listDeadLetters()

TypeScript
listDeadLetters(): Promise<readonly Readonly<AxEventDeadLetter>[]>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/runtime.ts#L297

Returns

Promise<readonly Readonly<AxEventDeadLetter>[]>


publish()

TypeScript
publish(ingress: Readonly<AxEventIngress>, signal?: AbortSignal): Promise<AxEventPublishReceipt>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/runtime.ts#L234

Parameters

ParameterType
ingressReadonly<AxEventIngress>
signal?AbortSignal

Returns

Promise<AxEventPublishReceipt>


redrive()

TypeScript
redrive(deadLetterId: string): Promise<void>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/runtime.ts#L301

Parameters

ParameterType
deadLetterIdstring

Returns

Promise<void>


start()

TypeScript
start(): Promise<void>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/runtime.ts#L172

Returns

Promise<void>


waitForIdle()

TypeScript
waitForIdle(timeoutMs: number): Promise<void>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/runtime.ts#L353

Parameters

ParameterTypeDefault value
timeoutMsnumber30_000

Returns

Promise<void>

Docs