SpeculateInput
Auto-generated API reference for SpeculateInput.
Interface: SpeculateInput
Defined in: speculate.ts:22
#Properties
#candidates
candidates:
SpeculativeCandidate[]
Defined in: speculate.ts:23
#pick?
optionalpick?:"first"|"longest"|SpeculatePicker
Defined in: speculate.ts:34
Picker strategy:
- 'first' (default): first candidate to settle without error
- 'longest': the candidate with the most output text
- function: custom picker receives all results in settle order
When 'first' is used, losers are aborted as soon as the winner settles. Custom pickers wait for all candidates to finish first.
#request
request:
AdapterRequest
Defined in: speculate.ts:24
#timeoutMs?
optionaltimeoutMs?:number
Defined in: speculate.ts:36
Hard timeout in ms per candidate. Default: none.