Mixins / foldkit-mixins-ui

ThinkingStepsView

interface · packages/mixins-ui/src/thinkingSteps.ts:78

interface ThinkingStepsView<Message> {
  readonly id: string
  readonly steps: ReadonlyArray<ThinkingStep>
  readonly open: Option.Option<boolean>
  readonly onToggle: (open: boolean) => NoInfer<Message>
  readonly duration?: number | undefined
  readonly summary?: string | undefined
  readonly openSteps?: ReadonlyArray<string> | undefined
  readonly onToggleStep?: ((id: string) => NoInfer<Message>) | undefined
  readonly stateWords?: StateWords | undefined
  readonly style?: NamedStyle<typeof ThinkingStepsSlots> | undefined
  readonly mixins?: MixinList<Message> | undefined
}

Members

ThinkingStepsView.id

property · packages/mixins-ui/src/thinkingSteps.ts:80

readonly id: string

Prefixes every id the trace draws, unique on the page.

ThinkingStepsView.steps

property · packages/mixins-ui/src/thinkingSteps.ts:81

readonly steps: ReadonlyArray<ThinkingStep>

ThinkingStepsView.open

property · packages/mixins-ui/src/thinkingSteps.ts:83

readonly open: Option.Option<boolean>

Open or shut, as the reader asked; none follows the work (shown).

ThinkingStepsView.onToggle

property · packages/mixins-ui/src/thinkingSteps.ts:85

readonly onToggle: (open: boolean) => NoInfer<Message>

Sent with the state a press on the trigger asks for.

ThinkingStepsView.duration

property · packages/mixins-ui/src/thinkingSteps.ts:87

readonly duration?: number | undefined

How long the whole took, in milliseconds; default the steps' durations summed.

ThinkingStepsView.summary

property · packages/mixins-ui/src/thinkingSteps.ts:89

readonly summary?: string | undefined

The trigger's words in place of Thinking, the running title, or Thought for 4s.

ThinkingStepsView.openSteps

property · packages/mixins-ui/src/thinkingSteps.ts:91

readonly openSteps?: ReadonlyArray<string> | undefined

The ids of the steps whose detail is open, when onToggleStep is given.

ThinkingStepsView.onToggleStep

property · packages/mixins-ui/src/thinkingSteps.ts:93

readonly onToggleStep?: ((id: string) => NoInfer<Message>) | undefined

Makes each step with detail a button that sends this with its id.

ThinkingStepsView.stateWords

property · packages/mixins-ui/src/thinkingSteps.ts:95

readonly stateWords?: StateWords | undefined

The words for each state; default English.

ThinkingStepsView.style

property · packages/mixins-ui/src/thinkingSteps.ts:97

readonly style?: NamedStyle<typeof ThinkingStepsSlots> | undefined

A style of ThinkingStepsSlots, for the look.

ThinkingStepsView.mixins

property · packages/mixins-ui/src/thinkingSteps.ts:99

readonly mixins?: MixinList<Message> | undefined

Mixins beside the style.