One complete (x, y, o) interaction triple.
| 23 | |
| 24 | |
| 25 | class RAMTriple(BaseModel): |
| 26 | """One complete (x, y, o) interaction triple.""" |
| 27 | |
| 28 | triple_id: str |
| 29 | timestamp: datetime = Field(default_factory=lambda: datetime.now(timezone.utc)) |
| 30 | subsystem: str # "method_gen" | "code_impl" | "paper_writing" |
| 31 | stage: str # pipeline stage name |
| 32 | x_context: str # RAM input |
| 33 | y_output: str = "" # RAM generated text |
| 34 | o_feedback: str = "" # downstream feedback |
| 35 | o_quality_signal: float = 0.0 # -1.0 ~ 1.0 |
| 36 | session_id: str = "" |
| 37 | workspace_id: str = "" |
| 38 | |
| 39 | |
| 40 | class RAMDataCollector: |