Raxol.UI.Components.Harness.ReasoningBlock (Raxol v2.6.1)

View Source

Renders reasoning/thinking content: item_completed{item_type: :reasoning, content}.

Collapsed by default, showing a one-line summary plus a "N lines" affordance. handle_event/3 toggles expand/collapse on Enter or Space. Styled dim throughout -- reasoning is secondary to the message and error blocks around it in the transcript.

Summary

Types

t()

@type t() :: %{
  id: String.t() | atom(),
  content: String.t(),
  expanded: boolean(),
  width: pos_integer(),
  style: map(),
  theme: map()
}

Functions

broadcast(msg)

command(cmd)

mount(state)

Callback implementation for Raxol.UI.Components.Base.Component.mount/1.

schedule(msg, delay)

unmount(state)

Callback implementation for Raxol.UI.Components.Base.Component.unmount/1.

update(props, state)

Callback implementation for Raxol.UI.Components.Base.Component.update/2.