five-on-it / apps/creator/src/runner / RunOptions
Interface: RunOptions
Defined in: apps/creator/src/runner.ts:101
What a run needs.
Properties
apiUrl
apiUrl:
string
Defined in: apps/creator/src/runner.ts:103
The platform API (the job's session calls it) and the web client (its links).
control
control:
Control
Defined in: apps/creator/src/runner.ts:106
fetch?
optionalfetch?: {(input,init?):Promise<Response>; (input,init?):Promise<Response>; }
Defined in: apps/creator/src/runner.ts:108
The HTTP client the tools call the API with.
Call Signature
(
input,init?):Promise<Response>
Parameters
input
URL | RequestInfo
init?
RequestInit
Returns
Promise<Response>
Call Signature
(
input,init?):Promise<Response>
Parameters
input
string | URL | Request
init?
RequestInit
Returns
Promise<Response>
heartbeatMs?
optionalheartbeatMs?:number
Defined in: apps/creator/src/runner.ts:114
How often a heartbeat goes out (ms; 3 s).
limits?
optionallimits?:Partial<{calls:number;inputTokens:number;maxTokens:number;outputTokens:number; }>
Defined in: apps/creator/src/runner.ts:112
Other caps than LIMITS (the tests').
log?
optionallog?: (message) =>void
Defined in: apps/creator/src/runner.ts:118
Hears what went wrong in the background.
Parameters
message
string
Returns
void
model
model:
Model
Defined in: apps/creator/src/runner.ts:105
now?
optionalnow?: () =>number
Defined in: apps/creator/src/runner.ts:116
The clock (ms).
Returns
number
poll?
optionalpoll?:object
Defined in: apps/creator/src/runner.ts:110
How builds are waited for (every second, ten minutes at most).
intervalMs
intervalMs:
number
timeoutMs
timeoutMs:
number
signal?
optionalsignal?:AbortSignal
Defined in: apps/creator/src/runner.ts:120
Aborts when the runner stops: the job fails through no fault of its brief.
webUrl
webUrl:
string
Defined in: apps/creator/src/runner.ts:104