def write_memory(memory: str) -> None: """Useful for recording a useful fact or memory to recall later.""" ... def read_memory(query: str) -> str: """Useful for looking up a previously recorded memory.""" ... write_tool = FunctionTool.from_defaults(write_memory) read_tool = FunctionTool.from_defaults(read_memory)