Skip to content

@sqlrooms/ai / ToolDisplayBehavior

Type Alias: ToolDisplayBehavior

ToolDisplayBehavior = object

Controls how tool calls are labeled in the UI. All callbacks return undefined to fall back to the renderer's default.

  • getToolDisplayName: label for agent summary lines (ParentSummaryLine). Falls back to the raw tool name.
  • getActivityLabel: label for leaf activity log lines (ActivityLogLine, OrchestratorLogLineInner). Used only when the tool call has no reasoning input field — a present reasoning always wins so that model-provided thoughts are never hidden. Falls back to "Thinking..." while pending, then to the raw tool name.

Properties

getToolDisplayName()?

optional getToolDisplayName: (toolCall) => string | undefined

Parameters

ParameterType
toolCallAgentToolCall

Returns

string | undefined


getActivityLabel()?

optional getActivityLabel: (toolCall) => string | undefined

Parameters

ParameterType
toolCallAgentToolCall

Returns

string | undefined