package com.easyagents.skill.codec;

import com.easyagents.skill.model.SkillPackage;
import com.easyagents.skill.validation.SkillValidationReport;

/**
 * Skill 包解码结果。
 */
public final class SkillPackageReadResult {

    private final SkillPackage skillPackage;
    private final SkillValidationReport validationReport;
    private final String packageHash;

    /**
     * 创建解码结果。
     *
     * @param skillPackage Skill 包
     * @param validationReport 校验报告
     * @param packageHash 输入 ZIP SHA-256
     */
    public SkillPackageReadResult(SkillPackage skillPackage, SkillValidationReport validationReport,
                                  String packageHash) {
        this.skillPackage = skillPackage;
        this.validationReport = validationReport;
        this.packageHash = packageHash;
    }

    /** @return Skill 包 */
    public SkillPackage getSkillPackage() {
        return skillPackage;
    }

    /** @return 结构化校验报告 */
    public SkillValidationReport getValidationReport() {
        return validationReport;
    }

    /** @return 输入 ZIP SHA-256 */
    public String getPackageHash() {
        return packageHash;
    }
}
