22 lines
461 B
Python
22 lines
461 B
Python
"""Shared skill contracts."""
|
|
from __future__ import annotations
|
|
|
|
from dataclasses import dataclass, field
|
|
from typing import Any
|
|
|
|
|
|
@dataclass
|
|
class SkillResult:
|
|
status: str
|
|
output: dict[str, Any] = field(default_factory=dict)
|
|
writes_long_term_memory: bool = False
|
|
|
|
|
|
class MemorySkill:
|
|
name = "memory_skill"
|
|
writes_long_term_memory = False
|
|
|
|
async def run(self, payload: dict[str, Any]) -> SkillResult:
|
|
raise NotImplementedError
|
|
|