MCPcopy Create free account
hub / github.com/AQ-MedAI/MedMemoryBench / MemoryBuildResult

Class MemoryBuildResult

methods/base.py:11–39  ·  view source on GitHub ↗

Result of memorize() method.

Source from the content-addressed store, hash-verified

9
10@dataclass
11class MemoryBuildResult:
12 """Result of memorize() method."""
13 success: bool = True
14 method: str = ""
15 action: str = ""
16 input_content: str = ""
17 stored_content: str = ""
18 memory_entries: List[Dict[str, Any]] = field(default_factory=list)
19 chunk_count: int = 0
20 time_cost: float = 0.0
21 extra: Dict[str, Any] = field(default_factory=dict)
22 # New fields for detailed intermediate results
23 extraction_result: str = "" # LLM extraction output
24 all_passages: List[Dict[str, Any]] = field(default_factory=list) # All stored passages
25
26 def to_dict(self) -> Dict[str, Any]:
27 return {
28 "success": self.success,
29 "method": self.method,
30 "action": self.action,
31 "input_content": self.input_content,
32 "stored_content": self.stored_content,
33 "memory_entries": self.memory_entries,
34 "chunk_count": self.chunk_count,
35 "time_cost": self.time_cost,
36 "extraction_result": self.extraction_result,
37 "all_passages": self.all_passages,
38 **self.extra
39 }
40
41
42@dataclass

Callers 15

_handle_memorizeMethod · 0.90
memorizeMethod · 0.85
memorizeMethod · 0.85
memorizeMethod · 0.85
memorizeMethod · 0.85
memorizeMethod · 0.85
memorizeMethod · 0.85
memorizeMethod · 0.85
memorizeMethod · 0.85
memorizeMethod · 0.85
memorizeMethod · 0.85
memorizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected