Skip to content

@sqlrooms/ai-core / getChatActiveStatus

Function: getChatActiveStatus() ​

getChatActiveStatus(messages, behavior?): ChatActiveStatusInfo

Derives the current user-facing activity from the latest chat turn. Tool labels honor toolRenderBehavior before falling back to a humanized tool name.

Parameters ​

ParameterType
messagesUIMessage<unknown, UIDataTypes, UITools>[] | undefined
behaviorToolRenderBehavior

Returns ​

ChatActiveStatusInfo