19 lines
507 B
Python
19 lines
507 B
Python
|
|
# generated by datamodel-codegen:
|
||
|
|
# filename: semantic_memory_entry.json
|
||
|
|
|
||
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
from pydantic import AwareDatetime, BaseModel, ConfigDict, constr
|
||
|
|
|
||
|
|
|
||
|
|
class SemanticMemoryEntry(BaseModel):
|
||
|
|
model_config = ConfigDict(
|
||
|
|
extra='forbid',
|
||
|
|
)
|
||
|
|
id: constr(min_length=1)
|
||
|
|
topic: constr(min_length=1)
|
||
|
|
lesson: constr(min_length=1)
|
||
|
|
source_finding_id: constr(min_length=1)
|
||
|
|
evidence_refs: list[constr(pattern=r'^[0-9a-f]{64}$')]
|
||
|
|
created_at: AwareDatetime
|