12 lines
368 B
Python
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})
|
|
|