agentskit.js

SpeculateInput

Auto-generated API reference for SpeculateInput.

Interface: SpeculateInput

Defined in: speculate.ts:22

#Properties

#candidates

candidates: SpeculativeCandidate[]

Defined in: speculate.ts:23


#pick?

optional pick?: "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?

optional timeoutMs?: number

Defined in: speculate.ts:36

Hard timeout in ms per candidate. Default: none.

Explore nearby

✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page