HF / console /src /utils /agentBackend.ts
mysticaldragon's picture
Deploy QwenPaw - Personal AI Assistant Platform
4e7644b
Raw History Blame Contribute Delete
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);
}