var AIAgentTaskStatus;
(function (AIAgentTaskStatus) {
    AIAgentTaskStatus["Scheduled"] = "Scheduled";
    AIAgentTaskStatus["InProgress"] = "InProgress";
    AIAgentTaskStatus["Completed"] = "Completed";
    AIAgentTaskStatus["Error"] = "Error";
})(AIAgentTaskStatus || (AIAgentTaskStatus = {}));
export default AIAgentTaskStatus;
export class AIAgentTaskStatusHelper {
    static getAllStatusProps() {
        return [
            {
                status: AIAgentTaskStatus.Scheduled,
                title: "Scheduled",
                description: "Task is scheduled and waiting to be picked up by an agent.",
            },
            {
                status: AIAgentTaskStatus.InProgress,
                title: "In Progress",
                description: "Task is currently being processed by an AI agent.",
            },
            {
                status: AIAgentTaskStatus.Completed,
                title: "Completed",
                description: "Task has been completed successfully.",
            },
            {
                status: AIAgentTaskStatus.Error,
                title: "Error",
                description: "Task encountered an error during execution.",
            },
        ];
    }
    static getDescription(status) {
        const props = this.getAllStatusProps().find((p) => {
            return p.status === status;
        });
        return (props === null || props === void 0 ? void 0 : props.description) || "";
    }
    static getTitle(status) {
        const props = this.getAllStatusProps().find((p) => {
            return p.status === status;
        });
        return (props === null || props === void 0 ? void 0 : props.title) || "";
    }
    static isTerminalStatus(status) {
        return (status === AIAgentTaskStatus.Completed ||
            status === AIAgentTaskStatus.Error);
    }
}
//# sourceMappingURL=AIAgentTaskStatus.js.map