@sqlrooms/ai-core / ChatTurnSegment
Type Alias: ChatTurnSegment
ChatTurnSegment = {
kind:"other";part:UIMessagePart;index:number; } | {kind:"agent-tool";part:ToolPartWithId;index:number; } | {kind:"tool-group";parts:object[]; }
Interleaved segments used by the SQLRooms default turn recipe. Consecutive non-agent tools form a tool-group; agents and other parts break the group.