five-on-it / apps/creator/src/runner / RunOptions
Interface: RunOptions
Defined in: apps/creator/src/runner.ts:127
What a run needs.
Properties
apiUrl
apiUrl:
string
Defined in: apps/creator/src/runner.ts:129
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:132
fetch?
optionalfetch?: {(input,init?):Promise<Response>; (input,init?):Promise<Response>; }
Defined in: apps/creator/src/runner.ts:134
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:140
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:138
Other caps than LIMITS (the tests').
log?
optionallog?: (message) =>void
Defined in: apps/creator/src/runner.ts:144
Hears what went wrong in the background.
Parameters
message
string
Returns
void
model
model:
Model
Defined in: apps/creator/src/runner.ts:131
now?
optionalnow?: () =>number
Defined in: apps/creator/src/runner.ts:142
The clock (ms).
Returns
number
poll?
optionalpoll?:object
Defined in: apps/creator/src/runner.ts:136
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:146
Aborts when the runner stops: the job fails through no fault of its brief.
webUrl
webUrl:
string
Defined in: apps/creator/src/runner.ts:130