Spaces:
Paused
Paused
Download console/src/utils/agentBackend.ts from mysticaldragon/HF: direct link, hf CLI and curl.
- Browser
- Download file 438 Bytes
-
https://huggingface.co/spaces/mysticaldragon/HF/resolve/main/console/src/utils/agentBackend.ts
- Command line
-
hf download hf://spaces/mysticaldragon/HF/console/src/utils/agentBackend.ts
-
curl -L -o agentBackend.ts https://huggingface.co/spaces/mysticaldragon/HF/resolve/main/console/src/utils/agentBackend.ts
438 Bytes
| import type { AgentBackend } from "../api/types/agents"; | |
| import type { HarnessCapabilities } from "../api/modules/harness"; | |
| export function requiresQwenPawModel(backend: AgentBackend): boolean { | |
| return backend === "qwenpaw"; | |
| } | |
| export function supportsAgentAttachments( | |
| backend: AgentBackend, | |
| capabilities?: Partial<HarnessCapabilities>, | |
| ): boolean { | |
| return requiresQwenPawModel(backend) || Boolean(capabilities?.attachments); | |
| } | |