Skip to main content

Interface: ReliableRuntimeService

Defined in: src/airs/types.ts:101

Runtime scanning contract with item-correlated, resumable bulk operations.

Extends​

Methods​

pollBatch()​

pollBatch(batch, intervalMs?, retryOpts?): Promise<BulkScanResult[]>

Defined in: src/airs/types.ts:116

Poll one async submission and return one result per prompt, ordered by input index.

Parameters​

batch​

SubmittedBatch

intervalMs?​

number

retryOpts?​
baseDelayMs?​

number

maxNoProgressPolls?​

number

maxRetries?​

number

onProgress?​

(results) => void | Promise<void>

onRetry?​

(attempt, delayMs) => void

Returns​

Promise<BulkScanResult[]>


pollResults()​

pollResults(scanIds, intervalMs?): Promise<RuntimeScanResult[]>

Defined in: src/airs/types.ts:97

Parameters​

scanIds​

string[]

intervalMs?​

number

Returns​

Promise<RuntimeScanResult[]>

Deprecated​

Use ReliableRuntimeService.pollBatch to preserve per-prompt correlation.

Inherited from​

RuntimeService.pollResults


scanPrompt()​

scanPrompt(profileName, prompt, response?): Promise<RuntimeScanResult>

Defined in: src/airs/types.ts:93

Scan a single prompt (and optional response) synchronously.

Parameters​

profileName​

string

prompt​

string

response?​

string

Returns​

Promise<RuntimeScanResult>

Inherited from​

RuntimeService.scanPrompt


submitBatch()​

submitBatch(profileName, prompts, sessionId?, retryOpts?): Promise<SubmittedBatch>

Defined in: src/airs/types.ts:103

Submit one SDK-sized group of indexed prompts for async scanning.

Parameters​

profileName​

string

prompts​

IndexedPrompt[]

sessionId?​

string

retryOpts?​
baseDelayMs?​

number

maxNoProgressPolls?​

number

maxRetries?​

number

onProgress?​

(results) => void | Promise<void>

onRetry?​

(attempt, delayMs) => void

Returns​

Promise<SubmittedBatch>


submitBulkScan()​

submitBulkScan(profileName, prompts, sessionId?): Promise<string[]>

Defined in: src/airs/types.ts:95

Parameters​

profileName​

string

prompts​

string[]

sessionId?​

string

Returns​

Promise<string[]>

Deprecated​

Use ReliableRuntimeService.submitBatch to preserve per-prompt correlation.

Inherited from​

RuntimeService.submitBulkScan