import { isStructuredAgentId } from './agent-session-provider-handle' /** A chat tab of any agent its host registered; the host publishes tabs of no other agent. Takes * only the fields it reads, so readers with their own tab shape share this one predicate. */ export function isStructuredTab( tab: T ): tab is T & { contentType: 'agent-session' } { return tab.contentType === 'agent-session' && isStructuredAgentId(tab.agentSessionAgent) }