ParallelDispatchOptions
Defined in: packages/ai.matey.types/src/router.ts:420
Options for parallel dispatch.
Properties
Section titled “Properties”backends?
Section titled “backends?”
readonlyoptionalbackends: readonlystring[]
Defined in: packages/ai.matey.types/src/router.ts:424
Backend names to dispatch to.
cancelOnFirstSuccess?
Section titled “cancelOnFirstSuccess?”
readonlyoptionalcancelOnFirstSuccess:boolean
Defined in: packages/ai.matey.types/src/router.ts:441
Cancel remaining requests on first success.
Default
Section titled “Default”truecustomAggregator()?
Section titled “customAggregator()?”
readonlyoptionalcustomAggregator: (responses) =>IRChatResponse
Defined in: packages/ai.matey.types/src/router.ts:446
Custom aggregation function for ‘custom’ strategy.
Parameters
Section titled “Parameters”responses
Section titled “responses”object[]
Returns
Section titled “Returns”strategy?
Section titled “strategy?”
readonlyoptionalstrategy:ParallelStrategy
Defined in: packages/ai.matey.types/src/router.ts:430
Parallel dispatch strategy.
Default
Section titled “Default”'first'timeout?
Section titled “timeout?”
readonlyoptionaltimeout:number
Defined in: packages/ai.matey.types/src/router.ts:435
Timeout for parallel requests (milliseconds).