mirror of
https://github.com/langgenius/dify.git
synced 2026-02-13 16:00:55 -05:00
- Introduced SandboxManager.delete_storage method for improved storage management. - Refactored skill loading and tool artifact handling in DifyCliInitializer and SandboxBashSession. - Updated LLMNode to extract and compile tool artifacts, enhancing integration with skills. - Improved attribute management in AttrMap for better error handling and retrieval methods.
19 lines
802 B
Python
19 lines
802 B
Python
class AssetPaths:
|
|
_BASE = "app_assets"
|
|
|
|
@staticmethod
|
|
def draft_file(tenant_id: str, app_id: str, node_id: str) -> str:
|
|
return f"{AssetPaths._BASE}/{tenant_id}/{app_id}/draft/{node_id}"
|
|
|
|
@staticmethod
|
|
def build_zip(tenant_id: str, app_id: str, assets_id: str) -> str:
|
|
return f"{AssetPaths._BASE}/{tenant_id}/{app_id}/artifacts/{assets_id}.zip"
|
|
|
|
@staticmethod
|
|
def build_resolved_file(tenant_id: str, app_id: str, assets_id: str, node_id: str) -> str:
|
|
return f"{AssetPaths._BASE}/{tenant_id}/{app_id}/artifacts/{assets_id}/resolved/{node_id}"
|
|
|
|
@staticmethod
|
|
def build_skill_artifact_set(tenant_id: str, app_id: str, assets_id: str) -> str:
|
|
return f"{AssetPaths._BASE}/{tenant_id}/{app_id}/artifacts/{assets_id}/skill_artifact_set.json"
|