Skip to content

ParallelDispatchOptions

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

Options for parallel dispatch.

readonly optional backends: readonly string[]

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

Backend names to dispatch to.


readonly optional cancelOnFirstSuccess: boolean

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

Cancel remaining requests on first success.

true

readonly optional customAggregator: (responses) => IRChatResponse

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

Custom aggregation function for ‘custom’ strategy.

object[]

IRChatResponse


readonly optional strategy: ParallelStrategy

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

Parallel dispatch strategy.

'first'

readonly optional timeout: number

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

Timeout for parallel requests (milliseconds).