wenjin272 commented on code in PR #596:
URL: https://github.com/apache/flink-agents/pull/596#discussion_r3085839816


##########
python/flink_agents/runtime/skill/skill_repository.py:
##########
@@ -0,0 +1,84 @@
+################################################################################
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+# limitations under the License.
+#################################################################################
+from abc import ABC, abstractmethod
+from dataclasses import dataclass
+from typing import Dict, List
+
+from flink_agents.runtime.skill.agent_skill import AgentSkill
+
+
+@dataclass
+class SkillRepositoryInfo:
+    """Information about a skill repository.
+
+    Attributes:
+    ----------
+    repo_type : str
+        The type of repository (e.g., "filesystem", "classpath", "url").
+    location : str
+        The location of the repository (e.g., path, URL).
+    writeable : bool
+        Whether the repository supports write operations.
+    """
+
+    repo_type: str
+    location: str
+    writeable: bool
+
+
+class SkillRepository(ABC):
+    """Abstract interface for skill repositories.
+
+    A SkillRepository is responsible for loading and optionally storing skills
+    from a specific source (filesystem, classpath, URL, etc.).
+
+    Each skill is stored in its own subdirectory containing a SKILL.md file
+    and optional resource files:
+
+    baseDir/
+    ├── skill-name-1/

Review Comment:
   I don't quite understand this question. Regarding skill-creator, then the 
`baseDir` can be any dir the flink-agents job can access, like 
`/flink/usrlib/skills`, and the `skill-name-1` will be `skill-creator`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to