MCPcopy Create free account
hub / github.com/MemTensor/MemOS / MemOSAddResponse

Class MemOSAddResponse

src/memos/api/product_models.py:1249–1269  ·  view source on GitHub ↗

Response model for add message operation based on actual API.

Source from the content-addressed store, hash-verified

1247
1248
1249class MemOSAddResponse(BaseModel):
1250 """Response model for add message operation based on actual API."""
1251
1252 code: int = Field(..., description="Response status code")
1253 message: str = Field(..., description="Response message")
1254 data: AddMessageData = Field(..., description="Add operation data")
1255
1256 @property
1257 def success(self) -> bool:
1258 """Convenient access to success status."""
1259 return self.data.success
1260
1261 @property
1262 def task_id(self) -> str:
1263 """Convenient access to task_id status."""
1264 return self.data.task_id
1265
1266 @property
1267 def status(self) -> str:
1268 """Convenient access to status status."""
1269 return self.data.status
1270
1271
1272class MemOSAddFeedBackResponse(BaseModel):

Callers 1

add_messageMethod · 0.90

Calls 1

FieldFunction · 0.85

Tested by

no test coverage detected