Skip to content

@sqlrooms/ai / ChatTurnRenderPlan

Type Alias: ChatTurnRenderPlan ​

ChatTurnRenderPlan = object

Chronological presentation plan derived from buildChatTurnModel.

Prefer buildChatTurnModel for new code. This adapter preserves the activity → response → hoisted → summary projection used by chronological recipes and existing tests.

Properties ​

activity ​

activity: ChatTurnActivityItem[]

Reasoning + tool/agent activity in source order.


responseText ​

responseText: ChatTurnTextItem[]

Orchestrator text before the first hoist-producing call.


hoisted ​

hoisted: HoistableToolCall[]

Hoisted tool renderers in execution order (deduped by toolCallId).


summaryText ​

summaryText: ChatTurnTextItem[]

Orchestrator text after the first hoist-producing call.


leafToolCount ​

leafToolCount: number

Leaf tool count for the activity summary label.


isActivityRunning ​

isActivityRunning: boolean

True when any activity tool is still pending.