Class: SdkRuntimeService
Defined in: src/airs/runtime.ts:203
Runtime scanning contract with item-correlated, resumable bulk operations.
Implements
Constructors
Constructor
new SdkRuntimeService(
opts):SdkRuntimeService
Defined in: src/airs/runtime.ts:206
Parameters
opts
InitOptions
Returns
SdkRuntimeService
Methods
pollBatch()
pollBatch(
batch,intervalMs?,retryOpts?):Promise<BulkScanResult[]>
Defined in: src/airs/runtime.ts:291
Poll one async submission and return one result per prompt, ordered by input index.
Parameters
batch
intervalMs?
number = DEFAULT_POLL_INTERVAL_MS
retryOpts?
Returns
Promise<BulkScanResult[]>
Implementation of
ReliableRuntimeService.pollBatch
pollResults()
pollResults(
scanIds,intervalMs?,retryOpts?):Promise<RuntimeScanResult[]>
Defined in: src/airs/runtime.ts:500
Compatibility poller for callers that retained only batch scan IDs. Nested detection data is preserved, but prompt text and per-request fan-out cannot be reconstructed from scan IDs alone.
Parameters
scanIds
string[]
intervalMs?
number = DEFAULT_POLL_INTERVAL_MS
retryOpts?
Returns
Promise<RuntimeScanResult[]>
Deprecated
Use pollBatch to preserve (scan_id, req_id) correlation and prompt text.
Implementation of
ReliableRuntimeService.pollResults
scanPrompt()
scanPrompt(
profileName,prompt,response?):Promise<RuntimeScanResult>
Defined in: src/airs/runtime.ts:211
Scan a single prompt (and optional response) synchronously.
Parameters
profileName
string
prompt
string
response?
string
Returns
Promise<RuntimeScanResult>
Implementation of
ReliableRuntimeService.scanPrompt
submitBatch()
submitBatch(
profileName,prompts,sessionId?,retryOpts?):Promise<SubmittedBatch>
Defined in: src/airs/runtime.ts:229
Submit one SDK-sized group of indexed prompts for async scanning.
Parameters
profileName
string
prompts
sessionId?
string
retryOpts?
Returns
Promise<SubmittedBatch>
Implementation of
ReliableRuntimeService.submitBatch
submitBulkScan()
submitBulkScan(
profileName,prompts,sessionId?):Promise<string[]>
Defined in: src/airs/runtime.ts:469
Parameters
profileName
string
prompts
string[]
sessionId?
string
Returns
Promise<string[]>
Deprecated
Use submitBatch to preserve per-prompt request correlation.
Implementation of
ReliableRuntimeService.submitBulkScan
formatResultsCsv()
staticformatResultsCsv(results):string
Defined in: src/airs/runtime.ts:597
Parameters
results
(RuntimeScanResult | BulkScanResult)[]
Returns
string