nvflare.tool.agent.skill_manifest module

Build and validate the manifest for NVFLARE-owned agent skills.

exception SkillManifestError(code: str, message: str, hint: str = '', detail: str = '')[source]

Bases: ValueError

Manifest loading error surfaced through agent CLI structured error handling.

build_skill_manifest(skills_root: Path | str, *, source_type: str, nvflare_version: str = '', include_analysis_files: bool = True) dict[source]

Build the released-skill manifest for a skills source root.

copy_released_skills_to_bundle(skills_root: Path | str, bundle_root: Path | str, *, nvflare_version: str = '', include_analysis_files: bool = True) dict[source]

Copy valid released skills and write their manifest into a package bundle directory.

load_manifest(manifest_path: Path | str) dict[source]
skill_tree_hash(skill_dir: Path, *, exclude_names: set[str] | None = None) str[source]

Hash a skill directory by relative paths and file contents.

write_empty_skill_bundle(bundle_root: Path | str, *, nvflare_version: str = '') dict[source]

Write an empty package skill bundle manifest and remove bundled skill content.

write_manifest(manifest: dict, manifest_path: Path | str) None[source]