Update an existing memory system with new configuration and create a new version Args: memory_name: Name of the memory system to update memory: New memory instance or class with updated content new_version: New version string. If None, auto-increm
(self, memory_name: str, memory: Union[Memory, Type[Memory]],
new_version: Optional[str] = None, description: Optional[str] = None,
**kwargs: Any)
| 68 | return memory_config |
| 69 | |
| 70 | async def update(self, memory_name: str, memory: Union[Memory, Type[Memory]], |
| 71 | new_version: Optional[str] = None, description: Optional[str] = None, |
| 72 | **kwargs: Any) -> MemoryConfig: |
| 73 | """Update an existing memory system with new configuration and create a new version |
| 74 | |
| 75 | Args: |
| 76 | memory_name: Name of the memory system to update |
| 77 | memory: New memory instance or class with updated content |
| 78 | new_version: New version string. If None, auto-increments from current version. |
| 79 | description: Description for this version update |
| 80 | **kwargs: Configuration for memory initialization |
| 81 | |
| 82 | Returns: |
| 83 | MemoryConfig: Updated memory configuration |
| 84 | """ |
| 85 | memory_config = await self.memory_context_manager.update(memory_name, memory, new_version, description, **kwargs) |
| 86 | self._registered_memories[memory_config.name] = memory_config |
| 87 | return memory_config |
| 88 | |
| 89 | async def get_info(self, memory_name: str) -> Optional[MemoryConfig]: |
| 90 | """Get memory configuration by name |
no outgoing calls
no test coverage detected