Files
memory-gateway/memory_gateway/skills/extract_memory_skill.py
2026-05-05 16:18:31 +08:00

12 lines
368 B
Python

from .base import MemorySkill, SkillResult
class ExtractMemorySkill(MemorySkill):
name = "extract_memory_skill"
async def run(self, payload: dict) -> SkillResult:
text = payload.get("content", "")
candidates = [{"content": text, "confidence": 0.5}] if text else []
return SkillResult(status="ok", output={"candidates": candidates})