Spaces:
Paused
Paused
Download console/src/utils/agentVisibility.ts from mysticaldragon/HF: direct link, hf CLI and curl.
- Browser
- Download file 402 Bytes
-
https://huggingface.co/spaces/mysticaldragon/HF/resolve/main/console/src/utils/agentVisibility.ts
- Command line
-
hf download hf://spaces/mysticaldragon/HF/console/src/utils/agentVisibility.ts
-
curl -L -o agentVisibility.ts https://huggingface.co/spaces/mysticaldragon/HF/resolve/main/console/src/utils/agentVisibility.ts
402 Bytes
| import type { AgentSummary } from "../api/types/agents"; | |
| /** | |
| * App-managed profiles are execution engines for their owning PawApp, not | |
| * standalone personalities in the host's general-purpose Chat surface. | |
| * Treat an absent field as visible for compatibility with older hosts. | |
| */ | |
| export function isAgentAvailableInChat(agent: AgentSummary): boolean { | |
| return agent.available_in_chat !== false; | |
| } | |