Skip to content

ParallelStrategy

const ParallelStrategy: object

Defined in: packages/ai.matey.types/src/router.ts:393

Strategy for handling parallel dispatch results.

readonly ALL: "all" = 'all'

Wait for all responses, return array of results.

readonly CUSTOM: "custom" = 'custom'

Use custom aggregation logic.

readonly FASTEST: "fastest" = 'fastest'

Return fastest successful response (with timeout).

readonly FIRST: "first" = 'first'

Return first successful response, cancel others.