HITLSpec
interface HITLSpec<TSubjectArgs extends object | void = void, TBodyArgs extends object | void = TSubjectArgs> extends HITLBaseSpec<TSubjectArgs, TBodyArgs> {
assignedUsers?: readonly HITLUser[];
body?: HITLText<TBodyArgs, string | null>;
defaults?: readonly string[];
multiple?: boolean;
options: readonly string[];
params?: Readonly<Record<string, HITLParam>>;
responseTimeout?: number;
subject: HITLText<TSubjectArgs>;
}Source: spec.ts:79
The HITLOperator options, named as TypeScript spells them.
Type Parameters
TSubjectArgsextendsobject | void=voidTBodyArgsextendsobject | void=TSubjectArgs
Hierarchy
HITLBaseSpec<TSubjectArgs, TBodyArgs>HITLSpec
Properties
assignedUsers: readonly HITLUser[]
Inherited from assignedUsers
Users allowed to respond. Anyone who can act on the task may respond when unset.
body: HITLText<TBodyArgs, string | null>
Inherited from body
Markdown shown below the headline.
defaults: readonly string[]
Options chosen for the responder when responseTimeout passes without a response.
multiple: boolean
Whether more than one option may be chosen.
options: readonly string[]
What the responder chooses from.
params: Readonly<Record<string, HITLParam>>
Inherited from params
Form fields the responder fills in, by name. Their answers are the result's paramsInput.
responseTimeout: number
Inherited from responseTimeout
Whole seconds to wait for a response, since TypeScript has no timedelta. Waits indefinitely when unset. Use this rather than executionTimeout, which a HITL task does not enforce.
subject: HITLText<TSubjectArgs>
Inherited from subject
Headline of the request.