mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 13:52:43 +08:00
22 lines
470 B
Python
22 lines
470 B
Python
from dataclasses import dataclass
|
|
from typing import List
|
|
|
|
from opendevin.schema import ObservationType
|
|
|
|
from .base import Observation
|
|
|
|
|
|
@dataclass
|
|
class AgentRecallObservation(Observation):
|
|
"""
|
|
This data class represents a list of memories recalled by the agent.
|
|
"""
|
|
|
|
memories: List[str]
|
|
role: str = 'assistant'
|
|
observation: str = ObservationType.RECALL
|
|
|
|
@property
|
|
def message(self) -> str:
|
|
return 'The agent recalled memories.'
|