@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 noreasoninginput field — a presentreasoningalways wins so that model-provided thoughts are never hidden. Falls back to "Thinking..." while pending, then to the raw tool name.
Properties
getToolDisplayName()?
optionalgetToolDisplayName: (toolCall) =>string|undefined
Parameters
| Parameter | Type |
|---|---|
toolCall | AgentToolCall |
Returns
string | undefined
getActivityLabel()?
optionalgetActivityLabel: (toolCall) =>string|undefined
Parameters
| Parameter | Type |
|---|---|
toolCall | AgentToolCall |
Returns
string | undefined
