Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

415 B
Raw Blame
/**
 * Does the chat model of this phone get sub agents, as a hook for the pages.
 * The rule itself is lib/phone-sub-agents.ts, the same one the tool registry asks.
 */
import { subAgentsOffered } from '../../../../lib/phone-sub-agents'
import { useModelStore } from '../../../../stores/modelStore'

export function useSubAgentsOffered(): boolean {
  return useModelStore((s) => subAgentsOffered(s.activeModel))
}