HITLTask

interface HITLTask<TArgs extends object | void = void> extends Operator<TArgs, HITLResult> { assignedUsers: readonly HITLUser[]; body: HITLText<TArgs, string | null> | undefined; defaults: readonly string[] | undefined; failOnReject: boolean; ignoreDownstreamTriggerRules: boolean; kind: 'choice' | 'approval'; multiple: boolean; options: readonly string[]; params: Readonly<Record<string, HITLParam>>; responseTimeout: number | undefined; subject: HITLText<TArgs>; }

Source: spec.ts:133

What hitl(...) and approval(...) return, to pass to dag.task(...): the options, checked and with their defaults applied.

Type Parameters

  • TArgs extends object | void = void

Hierarchy

  • Operator<TArgs, HITLResult>
  • HITLTask

Properties

assignedUsers: readonly HITLUser[]

readonly
spec.ts:142

body: HITLText<TArgs, string | null> | undefined

readonly
spec.ts:136

defaults: readonly string[] | undefined

readonly
spec.ts:140

failOnReject: boolean

readonly
spec.ts:148

Only an approval acts on this.

ignoreDownstreamTriggerRules: boolean

readonly
spec.ts:146

Only an approval acts on this.

kind: 'choice' | 'approval'

readonly
spec.ts:134

multiple: boolean

readonly
spec.ts:141

options: readonly string[]

readonly
spec.ts:139

params: Readonly<Record<string, HITLParam>>

readonly
spec.ts:143

responseTimeout: number | undefined

readonly
spec.ts:144

subject: HITLText<TArgs>

readonly
spec.ts:135